Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Leg

Hierarchy

  • Leg

Index

Properties

aimedEndTime: string

The aimed date and time this leg ends.

aimedStartTime: string

The aimed date and time this leg starts.

authority?: Authority

For ride legs, the service authority used for this legs. For non-ride legs, null.

bookingArrangements?: BookingArrangement
directDuration: number

This sums the direct durations of each leg. Be careful about using this, as it is not equal to the duration between startTime and endTime. See the directDuration documentation on Leg.

distance: number

The distance traveled while traversing the leg in meters.

duration: number

Duration of the trip, in seconds.

expectedEndTime: string

The expected, realtime adjusted date and time this leg ends.

expectedStartTime: string
fromEstimatedCall?: EstimatedCall

EstimatedCall for the quay where the leg originates.

fromPlace: Place

The Place where the leg originates.

interchangeFrom?: Interchange
interchangeTo?: Interchange
intermediateEstimatedCalls: EstimatedCall[]

For ride legs, estimated calls for quays between the Place where the leg originates and the Place where the leg ends. For non-ride legs, empty list.

line?: Line

For ride legs, the line. For non-ride legs, undefined.

mode: LegMode

The mode of transport or access (e.g., foot) used when traversing this leg.

notices?: Notice[]
operator?: Operator

For ride legs, the operator used for this legs. For non-ride legs, null.

pointsOnLink?: PointsOnLink
realtime: boolean

Whether there is real-time data about this leg or not

rentedBike?: boolean
ride: boolean
serviceJourney: ServiceJourney

For ride legs, the service journey. For non-ride legs, null.

situations: Situation[]

All relevant situations for this leg

toEstimatedCall?: EstimatedCall

EstimatedCall for the quay where the leg ends.

toPlace: Place

The Place where the leg ends.

transportSubmode?: TransportSubmode

The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride

Generated using TypeDoc