Class: NearestAirportSearchSession
A session for searching for nearest airports.
Hierarchy
CoherentNearestSearchSession
<string
,string
>↳
NearestAirportSearchSession
Constructors
constructor
• new NearestAirportSearchSession(sessionId
): NearestAirportSearchSession
Creates an instance of a CoherentNearestSearchSession.
Parameters
Name | Type | Description |
---|---|---|
sessionId | number | The ID of the session. |
Returns
Inherited from
CoherentNearestSearchSession<string, string>.constructor
Defined in
src/sdk/navigation/FacilityLoader.ts:727
Properties
sessionId
• Protected
Readonly
sessionId: number
The ID of the session.
Inherited from
CoherentNearestSearchSession.sessionId
Defined in
src/sdk/navigation/FacilityLoader.ts:727
Defaults
▪ Static
Defaults: Object
Default filters for the nearest airports search session.
Type declaration
Name | Type |
---|---|
ApproachTypeMask | number |
ClassMask | number |
MinimumRunwayLength | number |
ShowClosed | boolean |
SurfaceTypeMask | number |
ToweredMask | number |
Defined in
src/sdk/navigation/FacilityLoader.ts:762
Methods
onSearchCompleted
▸ onSearchCompleted(results
): void
A callback called by the facility loader when a nearest search has completed.
Parameters
Name | Type | Description |
---|---|---|
results | NearestSearchResults <string , string > | The search results. |
Returns
void
Inherited from
CoherentNearestSearchSession.onSearchCompleted
Defined in
src/sdk/navigation/FacilityLoader.ts:746
searchNearest
▸ searchNearest(lat
, lon
, radius
, maxItems
): Promise
<NearestSearchResults
<string
, string
>>
Parameters
Name | Type |
---|---|
lat | number |
lon | number |
radius | number |
maxItems | number |
Returns
Promise
<NearestSearchResults
<string
, string
>>
Inherit Doc
Inherited from
CoherentNearestSearchSession.searchNearest
Defined in
src/sdk/navigation/FacilityLoader.ts:730
setAirportFilter
▸ setAirportFilter(showClosed
, classMask
): void
Sets the filter for the airport nearest search.
Parameters
Name | Type | Description |
---|---|---|
showClosed | boolean | Whether or not to show closed airports. |
classMask | number | A bitmask to determine which JS airport classes to show. |
Returns
void
Defined in
src/sdk/navigation/FacilityLoader.ts:782
setExtendedAirportFilters
▸ setExtendedAirportFilters(surfaceTypeMask
, approachTypeMask
, toweredMask
, minRunwayLength
): void
Sets the extended airport filters for the airport nearest search.
Parameters
Name | Type | Description |
---|---|---|
surfaceTypeMask | number | A bitmask of allowable runway surface types. |
approachTypeMask | number | A bitmask of allowable approach types. |
toweredMask | number | A bitmask of untowered (1) or towered (2) bits. |
minRunwayLength | number | The minimum allowable runway length, in meters. |
Returns
void
Defined in
src/sdk/navigation/FacilityLoader.ts:793