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
Name | Type | Description |
---|---|---|
facilityRepo | FacilityRepository | The local facility repository included in this search session. |
filter | IcaoSearchFilter | The filter applied to this search session. |
Returns
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
Name | Type | Description |
---|---|---|
ident | string | An 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