Skip to main content

Interface: LegCalculations

Defined in: src/sdk/flightplan/FlightPlanning.ts:162

Metadata about a particular flight plan leg.

Properties​

courseMagVar​

courseMagVar: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:165

The magnetic variation, in degrees, used when calculating this leg's course.


cumulativeDistance​

cumulativeDistance: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:177

The total distance of the leg's base flight path vectors summed with those of all prior legs in the same flight plan, in meters.


cumulativeDistanceWithTransitions​

cumulativeDistanceWithTransitions: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:186

The total distance of the leg's ingress, ingress-to-egress, and egress flight path vectors summed with those of all prior legs in the same flight plan, in meters.


distance​

distance: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:171

The total distance of the leg's base flight path vectors, in meters.


distanceWithTransitions​

distanceWithTransitions: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:180

The total distance, of the leg's ingress, ingress-to-egress, and egress flight path vectors, in meters.


egress​

egress: FlightPathVector[]

Defined in: src/sdk/flightplan/FlightPlanning.ts:244

The leg's flight path egress transition.


egressBase​

egressBase: FlightPathVector[]

Defined in: src/sdk/flightplan/FlightPlanning.ts:214

The calculated base egress flight path for the leg.


egressBaseJoinIndex​

egressBaseJoinIndex: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:221

The index of the flight path vector in flightPath to which the base egress flight path is joined. If the base egress path directly joins the base ingress path or otherwise does not start on the base flight path, then the index is -1. If there is no base ingress path, then the index is -1.


egressJoinIndex​

egressJoinIndex: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:241

The index of the flight path vector in flightPath to which the egress transition is joined. If the egress transition directly joins the ingress transition or otherwise does not start on the base flight path, then the index is -1. If there is no ingress transition, then the index is -1.


endLat​

endLat: number | undefined

Defined in: src/sdk/flightplan/FlightPlanning.ts:195

The latitude of the end of the leg.


endLon​

endLon: number | undefined

Defined in: src/sdk/flightplan/FlightPlanning.ts:198

The longitude of the end of the leg.


endsInDiscontinuity​

endsInDiscontinuity: boolean

Defined in: src/sdk/flightplan/FlightPlanning.ts:247

Whether the leg's flight path ends in a discontinuity.


endsInFallback​

endsInFallback: boolean

Defined in: src/sdk/flightplan/FlightPlanning.ts:250

Whether the leg's flight path ends in a fallback state.


flightPath​

flightPath: FlightPathVector[]

Defined in: src/sdk/flightplan/FlightPlanning.ts:201

The calculated base flight path for the leg.


ingress​

ingress: FlightPathVector[]

Defined in: src/sdk/flightplan/FlightPlanning.ts:224

The leg's flight path ingress transition.


ingressBase​

ingressBase: FlightPathVector[]

Defined in: src/sdk/flightplan/FlightPlanning.ts:204

The calculated base ingress flight path for the leg.


ingressBaseJoinIndex​

ingressBaseJoinIndex: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:211

The index of the flight path vector in flightPath to which the base ingress flight path is joined. If the base ingress path directly joins the base egress path or otherwise does not end on the base flight path, then the index is equal to the length of the flightPath array. If there is no base ingress path, then the index is -1.


ingressJoinIndex​

ingressJoinIndex: number

Defined in: src/sdk/flightplan/FlightPlanning.ts:231

The index of the flight path vector in flightPath to which the ingress transition is joined. If the ingress transition directly joins the egress transition or otherwise does not end on the base flight path, then the index is equal to the length of the flightPath array. If there is no ingress transition, then the index is -1.


ingressToEgress​

ingressToEgress: FlightPathVector[]

Defined in: src/sdk/flightplan/FlightPlanning.ts:234

The leg's flight path between the ingress and egress transitions.


initialDtk​

initialDtk: number | undefined

Defined in: src/sdk/flightplan/FlightPlanning.ts:168

The initial DTK of the leg in degrees magnetic.


startLat​

startLat: number | undefined

Defined in: src/sdk/flightplan/FlightPlanning.ts:189

The latitude of the start of the leg.


startLon​

startLon: number | undefined

Defined in: src/sdk/flightplan/FlightPlanning.ts:192

The longitude of the start of the leg.