Skip to main content

Class: FlightPlanSegment

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

A segment of a flight plan.

Constructors

Constructor

new FlightPlanSegment(segmentIndex, offset, legs, segmentType, airway?): FlightPlanSegment

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

Creates a new FlightPlanSegment.

Parameters

ParameterTypeDefault valueDescription
segmentIndexnumberundefinedThe index of the segment within the flight plan.
offsetnumberundefinedThe leg offset within the original flight plan that the segment starts at.
legsLegDefinition[]undefinedThe legs in the flight plan segment.
segmentTypeFlightPlanSegmentTypeFlightPlanSegmentType.EnrouteThe type of segment this is.
airway?stringundefinedThe airway associated with this segment, if any.

Returns

FlightPlanSegment

Properties

airway?

optional airway: string

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

The airway associated with this segment, if any.


legs

legs: LegDefinition[]

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

The legs in the flight plan segment.


offset

offset: number

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

The leg offset within the original flight plan that the segment starts at.


segmentIndex

segmentIndex: number

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

The index of the segment within the flight plan.


segmentType

segmentType: FlightPlanSegmentType = FlightPlanSegmentType.Enroute

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

The type of segment this is.


Empty

static Empty: FlightPlanSegment

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

An empty flight plan segment.