Skip to main content

Class: G3XInternalPrimaryFlightPlanRouteProvider

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XInternalPrimaryFlightPlanRouteProvider.ts:12

A provider of flight plan routes representing the structure of the internal primary flight plan of an instance of G3XFms.

Implements​

Constructors​

Constructor​

new G3XInternalPrimaryFlightPlanRouteProvider(fms): G3XInternalPrimaryFlightPlanRouteProvider

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XInternalPrimaryFlightPlanRouteProvider.ts:17

Creates a new instance of G3XInternalPrimaryFlightPlanRouteProvider.

Parameters​

ParameterTypeDescription
fmsG3XFmsThe FMS containing the primary flight plan from which this provider sources flight plan routes.

Returns​

G3XInternalPrimaryFlightPlanRouteProvider

Methods​

getRoute()​

getRoute(): Promise<{ __Type: "JS_FlightPlanRoute"; approach: { __Type: "JS_ApproachIdentifier"; runway: { __Type: "JS_RunwayIdentifier"; designator: string; number: string; }; suffix: string; type: string; }; approachTransition: string; approachVfrPattern: { __Type: "JS_VfrPatternProcedure"; altitude: number; distance: number; isLeftTraffic: boolean; type: FlightPlanRouteVfrPatternApproachType; }; arrival: string; arrivalTransition: string; cruiseAltitude: { __Type: "JS_FlightAltitude"; altitude: number; isFlightLevel: boolean; } | null; departure: string; departureAirport: { __Type: "JS_ICAO"; airport: string; ident: string; region: string; type: string; }; departureRunway: { __Type: "JS_RunwayIdentifier"; designator: string; number: string; }; departureTransition: string; departureVfrPattern: { __Type: "JS_VfrPatternProcedure"; altitude: number; distance: number; isLeftTraffic: boolean; type: FlightPlanRouteVfrPatternDepartureType; }; destinationAirport: { __Type: "JS_ICAO"; airport: string; ident: string; region: string; type: string; }; destinationRunway: { __Type: "JS_RunwayIdentifier"; designator: string; number: string; }; enroute: readonly object[]; isVfr: boolean; }>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XInternalPrimaryFlightPlanRouteProvider.ts:27

Gets a flight plan route representing the structure of the internal primary flight plan loaded in this provider's G3XFms instance.

Returns​

Promise<{ __Type: "JS_FlightPlanRoute"; approach: { __Type: "JS_ApproachIdentifier"; runway: { __Type: "JS_RunwayIdentifier"; designator: string; number: string; }; suffix: string; type: string; }; approachTransition: string; approachVfrPattern: { __Type: "JS_VfrPatternProcedure"; altitude: number; distance: number; isLeftTraffic: boolean; type: FlightPlanRouteVfrPatternApproachType; }; arrival: string; arrivalTransition: string; cruiseAltitude: { __Type: "JS_FlightAltitude"; altitude: number; isFlightLevel: boolean; } | null; departure: string; departureAirport: { __Type: "JS_ICAO"; airport: string; ident: string; region: string; type: string; }; departureRunway: { __Type: "JS_RunwayIdentifier"; designator: string; number: string; }; departureTransition: string; departureVfrPattern: { __Type: "JS_VfrPatternProcedure"; altitude: number; distance: number; isLeftTraffic: boolean; type: FlightPlanRouteVfrPatternDepartureType; }; destinationAirport: { __Type: "JS_ICAO"; airport: string; ident: string; region: string; type: string; }; destinationRunway: { __Type: "JS_RunwayIdentifier"; designator: string; number: string; }; enroute: readonly object[]; isVfr: boolean; }>

A Promise which is fulfilled with the flight plan route representing the structure of the internal primary flight plan loaded in this provider's G3XFms instance. The returned Promise is guaranteed to never be rejected.

Implementation of​

GarminFlightPlanRouteProvider.getRoute