Class: ApproachUtils
A utility class for working with approach procedures.
Constructors
constructor
• new ApproachUtils(): ApproachUtils
Returns
Methods
getBestRnavType
▸ getBestRnavType(query
): RnavTypeFlags
Gets the best RNAV minimum type available for a given approach.
Parameters
Name | Type | Description |
---|---|---|
query | ApproachProcedure | RnavTypeFlags | The approach to check, or its RNAV type flags. |
Returns
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
Name | Type | Description |
---|---|---|
approach | ApproachProcedure | The 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
Name | Type | Description |
---|---|---|
facility | AirportFacility | The approach's parent airport facility. |
approach | ApproachProcedure | 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:53
▸ getFrequencyFromAirport(facility
, approachIndex
): undefined
| FacilityFrequency
Gets an approach frequency from its parent airport facility record.
Parameters
Name | Type | Description |
---|---|---|
facility | AirportFacility | The approach's parent airport facility. |
approachIndex | number | The 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
Name | Type | Description |
---|---|---|
approach | ApproachProcedure | The approach for which to get a reference facility. |
facLoader | FacilityLoader | The 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
Name | Type | Description |
---|---|---|
approach | ApproachProcedure | The approach procedure to check. |
Returns
boolean
Whether the approach procedure is an RNP (AR) approach.
Defined in
src/sdk/navigation/ApproachUtils.ts:41