Skip to main content

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

NameTypeDescription
sessionIdnumberThe ID of the session.

Returns

NearestAirportSearchSession

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

NameType
ApproachTypeMasknumber
ClassMasknumber
MinimumRunwayLengthnumber
ShowClosedboolean
SurfaceTypeMasknumber
ToweredMasknumber

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

NameTypeDescription
resultsNearestSearchResults<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

NameType
latnumber
lonnumber
radiusnumber
maxItemsnumber

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

NameTypeDescription
showClosedbooleanWhether or not to show closed airports.
classMasknumberA 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

NameTypeDescription
surfaceTypeMasknumberA bitmask of allowable runway surface types.
approachTypeMasknumberA bitmask of allowable approach types.
toweredMasknumberA bitmask of untowered (1) or towered (2) bits.
minRunwayLengthnumberThe minimum allowable runway length, in meters.

Returns

void

Defined in

src/sdk/navigation/FacilityLoader.ts:793