Skip to main content

Class: IcaoSearch

An ICAO search session, which allows searching for ICAO strings that match a particular ident string.

Constructors

constructor

new IcaoSearch(facilityRepo, filter): IcaoSearch

Constructor.

Parameters

NameTypeDescription
facilityRepoFacilityRepositoryThe local facility repository included in this search session.
filterIcaoSearchFilterThe filter applied to this search session.

Returns

IcaoSearch

Defined in

src/sdk/data/gpssearch/IcaoSearch.ts:36

Methods

doSearch

doSearch(ident): Promise<string[]>

Executes a new search in this session with a specified ident string to match. Only one active search can run simultaneously. Therefore, if doSearch() is called while a previous search is still running, the newer search will pre-empt the older one, causing the older one to fail.

Parameters

NameTypeDescription
identstringAn ident string.

Returns

Promise<string[]>

a Promise which is fulfilled with an array of ICAO strings that matched the ident string.

Throws

Error if the search was pre-empted by a newer one.

Defined in

src/sdk/data/gpssearch/IcaoSearch.ts:49