Class: FlightPlanRouteManager
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:25
A manager for working with flight plan routes. The manager can be used to send or retrieve routes. It also automatically publishes the event bus topics defined in FlightPlanRouteEvents in response to events related to flight plan routes.
Properties
avionicsRouteRequested
readonly
avionicsRouteRequested:ReadonlySubEvent
<FlightPlanRouteManager
,number
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:40
An event that fires when an avionics route is requested. The event data is the ID of the request.
avionicsRouteRequestResponse
readonly
avionicsRouteRequestResponse:ReadonlySubEvent
<FlightPlanRouteManager
,Readonly
<FlightPlanRouteAvionicsRequestResponse
>>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:44
An event that fires when a response to an avionics route request is received. The event data is the response.
efbRoute
readonly
efbRoute:Subscribable
<{__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/sdk/flightplan/FlightPlanRouteManager.ts:32
The current EFB flight plan route.
pendingAvionicsRouteRequests
readonly
pendingAvionicsRouteRequests:Subscribable
<readonlynumber
[]>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:51
An array of the IDs of all avionics route requests that have not received a response yet, in order of decreasing age.
syncedAvionicsRoute
readonly
syncedAvionicsRoute:Subscribable
<null
| {__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/sdk/flightplan/FlightPlanRouteManager.ts:36
The most recent synced avionics flight plan route.
Methods
fileRouteWithAtc()
fileRouteWithAtc(
route
):Promise
<void
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:143
Files a route with the sim's ATC service.
Parameters
Parameter | Type | Description |
---|---|---|
route | { __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 ; } | The route to file. |
route.__Type | "JS_FlightPlanRoute" | Coherent C++ object binding type. |
route.approach | { __Type : "JS_ApproachIdentifier" ; runway : { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; }; suffix : string ; type : string ; } | This route's approach procedure. |
route.approach.__Type | "JS_ApproachIdentifier" | Coherent C++ object binding type. |
route.approach.runway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | The approach's associated runway. |
route.approach.runway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.approach.runway.designator | string | The designator of the runway. |
route.approach.runway.number | string | The number of the runway. |
route.approach.suffix | string | The suffix of the approach. |
route.approach.type | string | The type name of the approach. |
route.approachTransition | string | The name of this route's approach procedure transition. |
route.approachVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternApproachType ; } | This route's VFR traffic pattern approach procedure. |
route.approachVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.approachVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.approachVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.approachVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.approachVfrPattern.type | FlightPlanRouteVfrPatternApproachType | The selected pattern type. |
route.arrival | string | The name of this route's arrival procedure. |
route.arrivalTransition | string | The name of this route's arrival procedure enroute transition. |
route.cruiseAltitude | null | { __Type : "JS_FlightAltitude" ; altitude : number ; isFlightLevel : boolean ; } | This route's cruise altitude. |
route.departure | string | The name of this route's departure procedure. |
route.departureAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's departure airport. |
route.departureAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.departureAirport.airport | string | The ident of the facility's associated airport. |
route.departureAirport.ident | string | The facility's ident. |
route.departureAirport.region | string | The facility's region code. |
route.departureAirport.type | string | The facility's type. |
route.departureRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's departure runway. |
route.departureRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.departureRunway.designator | string | The designator of the runway. |
route.departureRunway.number | string | The number of the runway. |
route.departureTransition | string | The name of this route's departure procedure enroute transition. |
route.departureVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternDepartureType ; } | This route's VFR traffic pattern departure procedure. |
route.departureVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.departureVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.departureVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.departureVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.departureVfrPattern.type | FlightPlanRouteVfrPatternDepartureType | The selected pattern type. |
route.destinationAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's destination airport. |
route.destinationAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.destinationAirport.airport | string | The ident of the facility's associated airport. |
route.destinationAirport.ident | string | The facility's ident. |
route.destinationAirport.region | string | The facility's region code. |
route.destinationAirport.type | string | The facility's type. |
route.destinationRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's destination runway. |
route.destinationRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.destinationRunway.designator | string | The designator of the runway. |
route.destinationRunway.number | string | The number of the runway. |
route.enroute | readonly object [] | This route's enroute legs. |
route.isVfr | boolean | Whether this route is classified as VFR. |
Returns
Promise
<void
>
A Promise which is fulfilled when the route has been scheduled to be delivered to the ATC service. This does not guarantee that the route will have been filed when the Promise is fulfilled.
getAtcRoute()
getAtcRoute():
Promise
<FlightPlanRoute
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:151
Gets the filed ATC route.
Returns
Promise
<FlightPlanRoute
>
A Promise which is fulfilled with the filed ATC route once it has been retrieved.
getEfbRoute()
getEfbRoute():
Promise
<FlightPlanRoute
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:93
Gets the saved EFB route.
Returns
Promise
<FlightPlanRoute
>
A Promise which is fulfilled with the saved EFB route once it has been retrieved.
replyToAvionicsRouteRequest()
replyToAvionicsRouteRequest(
requestId
,route
):Promise
<void
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:133
Reply to an avionics route request with a flight plan route.
Parameters
Parameter | Type | Description |
---|---|---|
requestId | number | The ID of the request to which to reply. |
route | { __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 ; } | The route to send as the reply. |
route.__Type | "JS_FlightPlanRoute" | Coherent C++ object binding type. |
route.approach | { __Type : "JS_ApproachIdentifier" ; runway : { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; }; suffix : string ; type : string ; } | This route's approach procedure. |
route.approach.__Type | "JS_ApproachIdentifier" | Coherent C++ object binding type. |
route.approach.runway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | The approach's associated runway. |
route.approach.runway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.approach.runway.designator | string | The designator of the runway. |
route.approach.runway.number | string | The number of the runway. |
route.approach.suffix | string | The suffix of the approach. |
route.approach.type | string | The type name of the approach. |
route.approachTransition | string | The name of this route's approach procedure transition. |
route.approachVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternApproachType ; } | This route's VFR traffic pattern approach procedure. |
route.approachVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.approachVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.approachVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.approachVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.approachVfrPattern.type | FlightPlanRouteVfrPatternApproachType | The selected pattern type. |
route.arrival | string | The name of this route's arrival procedure. |
route.arrivalTransition | string | The name of this route's arrival procedure enroute transition. |
route.cruiseAltitude | null | { __Type : "JS_FlightAltitude" ; altitude : number ; isFlightLevel : boolean ; } | This route's cruise altitude. |
route.departure | string | The name of this route's departure procedure. |
route.departureAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's departure airport. |
route.departureAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.departureAirport.airport | string | The ident of the facility's associated airport. |
route.departureAirport.ident | string | The facility's ident. |
route.departureAirport.region | string | The facility's region code. |
route.departureAirport.type | string | The facility's type. |
route.departureRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's departure runway. |
route.departureRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.departureRunway.designator | string | The designator of the runway. |
route.departureRunway.number | string | The number of the runway. |
route.departureTransition | string | The name of this route's departure procedure enroute transition. |
route.departureVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternDepartureType ; } | This route's VFR traffic pattern departure procedure. |
route.departureVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.departureVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.departureVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.departureVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.departureVfrPattern.type | FlightPlanRouteVfrPatternDepartureType | The selected pattern type. |
route.destinationAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's destination airport. |
route.destinationAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.destinationAirport.airport | string | The ident of the facility's associated airport. |
route.destinationAirport.ident | string | The facility's ident. |
route.destinationAirport.region | string | The facility's region code. |
route.destinationAirport.type | string | The facility's type. |
route.destinationRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's destination runway. |
route.destinationRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.destinationRunway.designator | string | The designator of the runway. |
route.destinationRunway.number | string | The number of the runway. |
route.enroute | readonly object [] | This route's enroute legs. |
route.isVfr | boolean | Whether this route is classified as VFR. |
Returns
Promise
<void
>
A Promise which is fulfilled when the route has been scheduled to be delivered to reply listeners. This does not guarantee that any listeners will have received the reply when the Promise is fulfilled.
requestAvionicsRoute()
requestAvionicsRoute():
Promise
<number
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:122
Sends an avionics route request to all request listeners.
Returns
Promise
<number
>
A Promise which is fulfilled with the ID of the request when the request has been scheduled to be delivered to request listeners. This does not guarantee that any listeners will have received the request when the Promise is fulfilled.
saveEfbRoute()
saveEfbRoute(
route
):Promise
<void
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:102
Saves a route as the EFB route.
Parameters
Parameter | Type | Description |
---|---|---|
route | { __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 ; } | The route to save. |
route.__Type | "JS_FlightPlanRoute" | Coherent C++ object binding type. |
route.approach | { __Type : "JS_ApproachIdentifier" ; runway : { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; }; suffix : string ; type : string ; } | This route's approach procedure. |
route.approach.__Type | "JS_ApproachIdentifier" | Coherent C++ object binding type. |
route.approach.runway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | The approach's associated runway. |
route.approach.runway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.approach.runway.designator | string | The designator of the runway. |
route.approach.runway.number | string | The number of the runway. |
route.approach.suffix | string | The suffix of the approach. |
route.approach.type | string | The type name of the approach. |
route.approachTransition | string | The name of this route's approach procedure transition. |
route.approachVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternApproachType ; } | This route's VFR traffic pattern approach procedure. |
route.approachVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.approachVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.approachVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.approachVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.approachVfrPattern.type | FlightPlanRouteVfrPatternApproachType | The selected pattern type. |
route.arrival | string | The name of this route's arrival procedure. |
route.arrivalTransition | string | The name of this route's arrival procedure enroute transition. |
route.cruiseAltitude | null | { __Type : "JS_FlightAltitude" ; altitude : number ; isFlightLevel : boolean ; } | This route's cruise altitude. |
route.departure | string | The name of this route's departure procedure. |
route.departureAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's departure airport. |
route.departureAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.departureAirport.airport | string | The ident of the facility's associated airport. |
route.departureAirport.ident | string | The facility's ident. |
route.departureAirport.region | string | The facility's region code. |
route.departureAirport.type | string | The facility's type. |
route.departureRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's departure runway. |
route.departureRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.departureRunway.designator | string | The designator of the runway. |
route.departureRunway.number | string | The number of the runway. |
route.departureTransition | string | The name of this route's departure procedure enroute transition. |
route.departureVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternDepartureType ; } | This route's VFR traffic pattern departure procedure. |
route.departureVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.departureVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.departureVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.departureVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.departureVfrPattern.type | FlightPlanRouteVfrPatternDepartureType | The selected pattern type. |
route.destinationAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's destination airport. |
route.destinationAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.destinationAirport.airport | string | The ident of the facility's associated airport. |
route.destinationAirport.ident | string | The facility's ident. |
route.destinationAirport.region | string | The facility's region code. |
route.destinationAirport.type | string | The facility's type. |
route.destinationRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's destination runway. |
route.destinationRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.destinationRunway.designator | string | The designator of the runway. |
route.destinationRunway.number | string | The number of the runway. |
route.enroute | readonly object [] | This route's enroute legs. |
route.isVfr | boolean | Whether this route is classified as VFR. |
Returns
Promise
<void
>
A Promise which is fulfilled when the route has been saved as the EFB route.
sendRouteToAvionics()
sendRouteToAvionics(
route
):Promise
<void
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:112
Sends a flight plan route to avionics for sync.
Parameters
Parameter | Type | Description |
---|---|---|
route | { __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 ; } | The route to send. |
route.__Type | "JS_FlightPlanRoute" | Coherent C++ object binding type. |
route.approach | { __Type : "JS_ApproachIdentifier" ; runway : { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; }; suffix : string ; type : string ; } | This route's approach procedure. |
route.approach.__Type | "JS_ApproachIdentifier" | Coherent C++ object binding type. |
route.approach.runway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | The approach's associated runway. |
route.approach.runway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.approach.runway.designator | string | The designator of the runway. |
route.approach.runway.number | string | The number of the runway. |
route.approach.suffix | string | The suffix of the approach. |
route.approach.type | string | The type name of the approach. |
route.approachTransition | string | The name of this route's approach procedure transition. |
route.approachVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternApproachType ; } | This route's VFR traffic pattern approach procedure. |
route.approachVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.approachVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.approachVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.approachVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.approachVfrPattern.type | FlightPlanRouteVfrPatternApproachType | The selected pattern type. |
route.arrival | string | The name of this route's arrival procedure. |
route.arrivalTransition | string | The name of this route's arrival procedure enroute transition. |
route.cruiseAltitude | null | { __Type : "JS_FlightAltitude" ; altitude : number ; isFlightLevel : boolean ; } | This route's cruise altitude. |
route.departure | string | The name of this route's departure procedure. |
route.departureAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's departure airport. |
route.departureAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.departureAirport.airport | string | The ident of the facility's associated airport. |
route.departureAirport.ident | string | The facility's ident. |
route.departureAirport.region | string | The facility's region code. |
route.departureAirport.type | string | The facility's type. |
route.departureRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's departure runway. |
route.departureRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.departureRunway.designator | string | The designator of the runway. |
route.departureRunway.number | string | The number of the runway. |
route.departureTransition | string | The name of this route's departure procedure enroute transition. |
route.departureVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternDepartureType ; } | This route's VFR traffic pattern departure procedure. |
route.departureVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.departureVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.departureVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.departureVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.departureVfrPattern.type | FlightPlanRouteVfrPatternDepartureType | The selected pattern type. |
route.destinationAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's destination airport. |
route.destinationAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.destinationAirport.airport | string | The ident of the facility's associated airport. |
route.destinationAirport.ident | string | The facility's ident. |
route.destinationAirport.region | string | The facility's region code. |
route.destinationAirport.type | string | The facility's type. |
route.destinationRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's destination runway. |
route.destinationRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.destinationRunway.designator | string | The designator of the runway. |
route.destinationRunway.number | string | The number of the runway. |
route.enroute | readonly object [] | This route's enroute legs. |
route.isVfr | boolean | Whether this route is classified as VFR. |
Returns
Promise
<void
>
A Promise which is fulfilled when the route has been scheduled to be delivered to listeners. This does not guarantee that any listeners will have received the route when the Promise is fulfilled.
sendRouteToEfb()
sendRouteToEfb(
route
):Promise
<void
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:85
Sends a flight plan route to the EFB.
Parameters
Parameter | Type | Description |
---|---|---|
route | { __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 ; } | The route to send. |
route.__Type | "JS_FlightPlanRoute" | Coherent C++ object binding type. |
route.approach | { __Type : "JS_ApproachIdentifier" ; runway : { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; }; suffix : string ; type : string ; } | This route's approach procedure. |
route.approach.__Type | "JS_ApproachIdentifier" | Coherent C++ object binding type. |
route.approach.runway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | The approach's associated runway. |
route.approach.runway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.approach.runway.designator | string | The designator of the runway. |
route.approach.runway.number | string | The number of the runway. |
route.approach.suffix | string | The suffix of the approach. |
route.approach.type | string | The type name of the approach. |
route.approachTransition | string | The name of this route's approach procedure transition. |
route.approachVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternApproachType ; } | This route's VFR traffic pattern approach procedure. |
route.approachVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.approachVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.approachVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.approachVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.approachVfrPattern.type | FlightPlanRouteVfrPatternApproachType | The selected pattern type. |
route.arrival | string | The name of this route's arrival procedure. |
route.arrivalTransition | string | The name of this route's arrival procedure enroute transition. |
route.cruiseAltitude | null | { __Type : "JS_FlightAltitude" ; altitude : number ; isFlightLevel : boolean ; } | This route's cruise altitude. |
route.departure | string | The name of this route's departure procedure. |
route.departureAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's departure airport. |
route.departureAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.departureAirport.airport | string | The ident of the facility's associated airport. |
route.departureAirport.ident | string | The facility's ident. |
route.departureAirport.region | string | The facility's region code. |
route.departureAirport.type | string | The facility's type. |
route.departureRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's departure runway. |
route.departureRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.departureRunway.designator | string | The designator of the runway. |
route.departureRunway.number | string | The number of the runway. |
route.departureTransition | string | The name of this route's departure procedure enroute transition. |
route.departureVfrPattern | { __Type : "JS_VfrPatternProcedure" ; altitude : number ; distance : number ; isLeftTraffic : boolean ; type : FlightPlanRouteVfrPatternDepartureType ; } | This route's VFR traffic pattern departure procedure. |
route.departureVfrPattern.__Type | "JS_VfrPatternProcedure" | Coherent C++ object binding type. |
route.departureVfrPattern.altitude | number | The pattern altitude, in feet AGL. |
route.departureVfrPattern.distance | number | The pattern leg distance, in nautical miles. |
route.departureVfrPattern.isLeftTraffic | boolean | Whether the pattern uses a left-hand traffic pattern (true) instead of a right-hand traffic pattern (false). |
route.departureVfrPattern.type | FlightPlanRouteVfrPatternDepartureType | The selected pattern type. |
route.destinationAirport | { __Type : "JS_ICAO" ; airport : string ; ident : string ; region : string ; type : string ; } | The ICAO of this route's destination airport. |
route.destinationAirport.__Type | "JS_ICAO" | Coherent C++ object binding type. |
route.destinationAirport.airport | string | The ident of the facility's associated airport. |
route.destinationAirport.ident | string | The facility's ident. |
route.destinationAirport.region | string | The facility's region code. |
route.destinationAirport.type | string | The facility's type. |
route.destinationRunway | { __Type : "JS_RunwayIdentifier" ; designator : string ; number : string ; } | This route's destination runway. |
route.destinationRunway.__Type | "JS_RunwayIdentifier" | Coherent C++ object binding type. |
route.destinationRunway.designator | string | The designator of the runway. |
route.destinationRunway.number | string | The number of the runway. |
route.enroute | readonly object [] | This route's enroute legs. |
route.isVfr | boolean | Whether this route is classified as VFR. |
Returns
Promise
<void
>
A Promise which is fulfilled when the route has been scheduled to be delivered to the EFB. This does not guarantee that the EFB will have received the route when the Promise is fulfilled.
getManager()
static
getManager():Promise
<FlightPlanRouteManager
>
Defined in: src/sdk/flightplan/FlightPlanRouteManager.ts:75
Gets an instance of FlightPlanRouteManager.
Returns
Promise
<FlightPlanRouteManager
>
A Promise which is fulfilled with an instance of FlightPlanRouteManager when the manager is ready.