Interface: GarminFlightPlanRouteProvider
Defined in: src/garminsdk/flightplan/GarminFlightPlanRouteProvider.ts:6
A provider of Garmin flight plan routes.
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
:null
| {__Type
:"JS_FlightAltitude"
;altitude
:number
;isFlightLevel
:boolean
; };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
: readonlyobject
[];isVfr
:boolean
; }>
Defined in: src/garminsdk/flightplan/GarminFlightPlanRouteProvider.ts:12
Gets a flight plan route.
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
: null
| { __Type
: "JS_FlightAltitude"
; altitude
: number
; isFlightLevel
: boolean
; }; 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 a flight plan route. The returned Promise is guaranteed to never be rejected.