Class: IcaoSearch
Defined in: src/sdk/data/gpssearch/IcaoSearch.ts:16
An ICAO search session, which allows searching for ICAO strings that match a particular ident string.
Constructors
Constructor
new IcaoSearch(
facilityRepo
,filter
):IcaoSearch
Defined in: src/sdk/data/gpssearch/IcaoSearch.ts:36
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
facilityRepo | FacilityRepository | The local facility repository included in this search session. |
filter | IcaoSearchFilter | The filter applied to this search session. |
Returns
IcaoSearch
Methods
doSearch()
doSearch(
ident
):Promise
<string
[]>
Defined in: src/sdk/data/gpssearch/IcaoSearch.ts:49
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
Parameter | 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.