Skip to main content

Class: FlightPlanSegment

A segment of a flight plan.

Constructors

constructor

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

Creates a new FlightPlanSegment.

Parameters

NameTypeDefault 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

Defined in

src/sdk/flightplan/FlightPlanning.ts:189

Properties

airway

Optional airway: string

The airway associated with this segment, if any.

Defined in

src/sdk/flightplan/FlightPlanning.ts:190


legs

legs: LegDefinition[]

The legs in the flight plan segment.

Defined in

src/sdk/flightplan/FlightPlanning.ts:189


offset

offset: number

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

Defined in

src/sdk/flightplan/FlightPlanning.ts:189


segmentIndex

segmentIndex: number

The index of the segment within the flight plan.

Defined in

src/sdk/flightplan/FlightPlanning.ts:189


segmentType

segmentType: FlightPlanSegmentType = FlightPlanSegmentType.Enroute

The type of segment this is.

Defined in

src/sdk/flightplan/FlightPlanning.ts:190


Empty

Static Empty: FlightPlanSegment

An empty flight plan segment.

Defined in

src/sdk/flightplan/FlightPlanning.ts:194