Skip to main content

Class: FlightPlanUtils

Utility class for working with flight plans.

Constructors

constructor

new FlightPlanUtils(): FlightPlanUtils

Returns

FlightPlanUtils

Methods

getTerminatorIcao

getTerminatorIcao(leg): undefined | string

Gets the ICAO of the facility defining the terminator of a flight plan leg.

Parameters

NameTypeDescription
legFlightPlanLegA flight plan leg.

Returns

undefined | string

The ICAO of the facility defining the terminator of the specified flight plan leg, or undefined if the leg's terminator is not defined by a facility.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:86


isAltitudeLeg

isAltitudeLeg(legType): legType is CA | FA | VA

Checks if a leg type is an "to altitude" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe leg type to check.

Returns

legType is CA | FA | VA

Whether the leg type is a "to altitude" leg type.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:31


isDiscontinuityLeg

isDiscontinuityLeg(legType): legType is Discontinuity | ThruDiscontinuity

Checks if a leg type is a discontinuity leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe leg type to check.

Returns

legType is Discontinuity | ThruDiscontinuity

Whether the leg type is a discontinuity leg type.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:76


isHeadingToLeg

isHeadingToLeg(legType): legType is VA | VD | VI | VM | VR

Checks if a leg type is a "heading to" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe leg type to check.

Returns

legType is VA | VD | VI | VM | VR

Whether the leg type is a "heading to" leg type.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:40


isHoldLeg

isHoldLeg(legType): legType is HA | HF | HM

Checks if a leg type is a "hold" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe leg type to check.

Returns

legType is HA | HF | HM

Whether the leg type is a "hold" leg type.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:58


isManualDiscontinuityLeg

isManualDiscontinuityLeg(legType): legType is FM | VM

Checks if a leg type is a manual termination leg type that ends in a discontinuity.

Parameters

NameTypeDescription
legTypeLegTypeThe leg type to check.

Returns

legType is FM | VM

Whether the leg type is a manual termination leg type that ends in a discontinuity.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:67


isToRadialLeg

isToRadialLeg(legType): legType is CR | VR

Checks if a leg type is a "to radial" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe leg type to check.

Returns

legType is CR | VR

Whether the leg type is a "to radial" leg type.

Defined in

src/sdk/flightplan/FlightPlanUtils.ts:49