Interface: NearestIcaoSearchSession<IcaoDataType>
Defined in: src/sdk/navigation/FacilityClient.ts:73
A session for searching for nearest facilities that provides ICAOs as results.
Extends
NearestSearchSession
<NearestIcaoSearchSessionDataTypeMap
[IcaoDataType
],NearestIcaoSearchSessionDataTypeMap
[IcaoDataType
]>
Extended by
NearestAirportFilteredSearchSession
NearestIntersectionFilteredSearchSession
NearestVorFilteredSearchSession
NearestCustomFilteredSearchSession
Type Parameters
Type Parameter |
---|
IcaoDataType extends NearestIcaoSearchSessionDataType |
Properties
icaoDataType
readonly
icaoDataType:IcaoDataType
Defined in: src/sdk/navigation/FacilityClient.ts:77
The data type of the ICAOs provided by this session.
Methods
searchNearest()
searchNearest(
lat
,lon
,radius
,maxItems
):Promise
<NearestSearchResults
<NearestIcaoSearchSessionDataTypeMap
[IcaoDataType
],NearestIcaoSearchSessionDataTypeMap
[IcaoDataType
]>>
Defined in: src/sdk/navigation/FacilityClient.ts:48
Searches for nearest facilities from the specified point.
Parameters
Parameter | Type | Description |
---|---|---|
lat | number | The latitude, in degrees. |
lon | number | The longitude, in degrees. |
radius | number | The radius around the point to search, in meters. |
maxItems | number | The maximum number of items. |
Returns
Promise
<NearestSearchResults
<NearestIcaoSearchSessionDataTypeMap
[IcaoDataType
], NearestIcaoSearchSessionDataTypeMap
[IcaoDataType
]>>
The nearest search results.