Skip to main content

Interface: NearestAirportFilteredSearchSession<IcaoDataType>

Defined in: src/sdk/navigation/FacilityClient.ts:83

A nearest search session that can filter airports.

Extends

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.

Inherited from

NearestIcaoSearchSession.icaoDataType

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

ParameterTypeDescription
latnumberThe latitude, in degrees.
lonnumberThe longitude, in degrees.
radiusnumberThe radius around the point to search, in meters.
maxItemsnumberThe maximum number of items.

Returns

Promise<NearestSearchResults<NearestIcaoSearchSessionDataTypeMap[IcaoDataType], NearestIcaoSearchSessionDataTypeMap[IcaoDataType]>>

The nearest search results.

Inherited from

NearestIcaoSearchSession.searchNearest


setAirportFilter()

setAirportFilter(showClosed, classMask): void

Defined in: src/sdk/navigation/FacilityClient.ts:89

Sets the filter for the airport nearest search.

Parameters

ParameterTypeDescription
showClosedbooleanWhether or not to show closed airports.
classMasknumberA bitmask to determine which JS airport classes to show.

Returns

void


setExtendedAirportFilters()

setExtendedAirportFilters(surfaceTypeMask, approachTypeMask, toweredMask, minRunwayLength): void

Defined in: src/sdk/navigation/FacilityClient.ts:98

Sets the extended airport filters for the airport nearest search.

Parameters

ParameterTypeDescription
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