Leg
objectPart of a trip pattern. Either a ride on a public transport vehicle or access or path link to/from/between places
Fields
An identifier for the leg, which can be used to re-fetch transit leg information. The identifier is valid for a maximum of 2 years, but sometimes it will fail after a few hours. We do not recommend storing IDs for a long time.
The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride
For ride legs, the service authority used for this legs. For non-ride legs, null.
For ride legs, intermediate quays between the Place where the leg originates and the Place where the leg ends. For non-ride legs, empty list.
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.
The leg's elevation profile. All elevation values, including the first one, are in meters above sea level. The elevation is negative for places below sea level. The profile includes both the start and end coordinate.
Fetch the previous legs, which can be used to replace this leg. The replacement legs do arrive/depart from/to the same stop places. It might be necessary to change other legs in an itinerary in order to be able to ride the returned legs.
Number of earlier legs to return.
Whether the leg should be similar to this leg in some way.
Fetch the next legs, which can be used to replace this leg. The replacement legs do arrive/depart from/to the same stop places. It might be necessary to change other legs in an itinerary in order to be able to ride the returned legs.
Number of later legs to return.
Whether the leg should be similar to this leg in some way.