Skip to main content

Class: ApproachUtils

Defined in: src/sdk/navigation/ApproachUtils.ts:12

A utility class for working with approach procedures.

Constructors

Constructor

new ApproachUtils(): ApproachUtils

Returns

ApproachUtils

Methods

getBestRnavType()

static getBestRnavType(query): RnavTypeFlags

Defined in: src/sdk/navigation/ApproachUtils.ts:18

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

Parameters

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

Returns

RnavTypeFlags

The best RNAV minimum type available for the specified approach.


getFafOriginIcao()

static getFafOriginIcao(approach): undefined | string

Defined in: src/sdk/navigation/ApproachUtils.ts:90

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

ParameterTypeDescription
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.


getFrequencyFromAirport()

Call Signature

static getFrequencyFromAirport(facility, approach): undefined | FacilityFrequency

Defined in: src/sdk/navigation/ApproachUtils.ts:53

Gets an approach frequency from its parent airport facility record.

Parameters
ParameterTypeDescription
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.

Call Signature

static getFrequencyFromAirport(facility, approachIndex): undefined | FacilityFrequency

Defined in: src/sdk/navigation/ApproachUtils.ts:60

Gets an approach frequency from its parent airport facility record.

Parameters
ParameterTypeDescription
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.


getReferenceFacility()

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

Defined in: src/sdk/navigation/ApproachUtils.ts:118

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

Parameters

ParameterTypeDescription
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.


isRnpAr()

static isRnpAr(approach): boolean

Defined in: src/sdk/navigation/ApproachUtils.ts:41

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

Parameters

ParameterTypeDescription
approachApproachProcedureThe approach procedure to check.

Returns

boolean

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