Skip to main content

Class: WTLineFlightPlanRouteUtils

Defined in: wtlinesdk/fms/WTLineFlightPlanRouteUtils.ts:12

Methods for working with WT21 flight plan routes.

Constructors

Constructor

new WTLineFlightPlanRouteUtils(): WTLineFlightPlanRouteUtils

Returns

WTLineFlightPlanRouteUtils

Properties

DEFAULT_LOAD_ROUTE_BATCH_NAME

readonly static DEFAULT_LOAD_ROUTE_BATCH_NAME: "flight-plan-route-load" = 'flight-plan-route-load'

Defined in: wtlinesdk/fms/WTLineFlightPlanRouteUtils.ts:14

The default name for flight plan modification batches opened when loading a flight plan route into a flight plan.

Methods

createRouteFromFlightPlan()

static createRouteFromFlightPlan(facLoader, flightPlan): Promise<FlightPlanRoute>

Defined in: wtlinesdk/fms/WTLineFlightPlanRouteUtils.ts:22

Creates a flight plan route representing the structure of a flight plan.

Parameters

ParameterTypeDescription
facLoaderFacilityLoaderThe facility loader to use to retrieve facilities referenced in the flight plan.
flightPlanFlightPlanThe flight plan from which to create the route.

Returns

Promise<FlightPlanRoute>

A flight plan route representing the structure of the specified flight plan.


legToFlightPlanRouteEnrouteLeg()

static legToFlightPlanRouteEnrouteLeg(facLoader, leg, out?): Promise<FlightPlanRouteEnrouteLeg>

Defined in: wtlinesdk/fms/WTLineFlightPlanRouteUtils.ts:159

Converts a flight plan leg into a flight plan route enroute leg.

Parameters

ParameterTypeDescription
facLoaderFacilityLoaderThe facility loader to use to retrieve facilities referenced in the flight plan leg.
legFlightPlanLegThe flight plan leg.
out?FlightPlanRouteEnrouteLegThe flight plan route enroute leg object to which to write the results. If not defined, then a new object will be created.

Returns

Promise<FlightPlanRouteEnrouteLeg>

The converted flight plan route enroute leg. If the specified flight plan leg could not be converted, then the converted enroute leg will be empty.