Skip to main content

Class: ApproachUtils

A utility class for working with approach procedures.

Constructors

constructor

new ApproachUtils(): ApproachUtils

Returns

ApproachUtils

Methods

getBestRnavType

getBestRnavType(query): RnavTypeFlags

Gets the best RNAV minimum type available for a given approach.

Parameters

NameTypeDescription
queryApproachProcedure | RnavTypeFlagsThe approach to check, or its RNAV type flags.

Returns

RnavTypeFlags

The best RNAV minimum type available for the specified approach.

Defined in

src/sdk/navigation/ApproachUtils.ts:18


getFafOriginIcao

getFafOriginIcao(approach): undefined | string

Gets the origin facility ICAO for the FAF leg of an approach. The facility type is not checked against the approach type to ensure it is valid, in contrast to getReferenceFacility which does perform these checks.

Parameters

NameTypeDescription
approachApproachProcedureThe approach for which to get a reference facility.

Returns

undefined | string

The ICAO of the origin facility for the FAF leg of the specified approach, or undefined if one could not be found.

Defined in

src/sdk/navigation/ApproachUtils.ts:90


getFrequencyFromAirport

getFrequencyFromAirport(facility, approach): undefined | FacilityFrequency

Gets an approach frequency from its parent airport facility record.

Parameters

NameTypeDescription
facilityAirportFacilityThe approach's parent airport facility.
approachApproachProcedureThe approach for which to get a frequency.

Returns

undefined | FacilityFrequency

The frequency of the specified approach, or undefined if one could not be found.

Defined in

src/sdk/navigation/ApproachUtils.ts:53

getFrequencyFromAirport(facility, approachIndex): undefined | FacilityFrequency

Gets an approach frequency from its parent airport facility record.

Parameters

NameTypeDescription
facilityAirportFacilityThe approach's parent airport facility.
approachIndexnumberThe index of the approach for which to get a frequency.

Returns

undefined | FacilityFrequency

The frequency of the specified approach, or undefined if one could not be found.

Defined in

src/sdk/navigation/ApproachUtils.ts:60


getReferenceFacility

getReferenceFacility(approach, facLoader): Promise<undefined | VorFacility | NdbFacility>

Gets the reference facility for an approach. Only ILS, LOC (BC), LDA, SDF, VOR(DME), and NDB(DME) approaches can have reference facilities.

Parameters

NameTypeDescription
approachApproachProcedureThe approach for which to get a reference facility.
facLoaderFacilityLoaderThe facility loader.

Returns

Promise<undefined | VorFacility | NdbFacility>

A Promise which is fulfilled with the reference facility for the specified approach, or undefined if one could not be found.

Defined in

src/sdk/navigation/ApproachUtils.ts:118


isRnpAr

isRnpAr(approach): boolean

Checks whether an approach procedure is an RNP (AR) approach.

Parameters

NameTypeDescription
approachApproachProcedureThe approach procedure to check.

Returns

boolean

Whether the approach procedure is an RNP (AR) approach.

Defined in

src/sdk/navigation/ApproachUtils.ts:41