RouteItineraryLeg interface
An interface representing RouteItineraryLeg.
Properties
caption | For Public Transit legs the caption of the line serving the leg, for example, line number. |
leg |
End time for the leg in ISO 8601 format, e.g. 1996-12-19T19:39:57-08:00. |
leg |
Start time for the leg in ISO 8601 format, e.g. 1996-12-19T19:39:57-08:00. |
leg |
The travel mode of the leg. Possible values include: 'Walk', 'Bicycle', 'Tram', 'Subway', 'Rail', 'Bus', 'Ferry', 'Cable', 'Gondola', 'Funicular', 'PathWayWalk', 'Wait', 'WaitOnVehicle' |
length |
The total distance of the leg in meters. |
Property Details
caption
For Public Transit legs the caption of the line serving the leg, for example, line number.
caption?: string
Property Value
string
legEndTime
End time for the leg in ISO 8601 format, e.g. 1996-12-19T19:39:57-08:00.
legEndTime?: string
Property Value
string
legStartTime
Start time for the leg in ISO 8601 format, e.g. 1996-12-19T19:39:57-08:00.
legStartTime?: string
Property Value
string
legType
The travel mode of the leg. Possible values include: 'Walk', 'Bicycle', 'Tram', 'Subway', 'Rail', 'Bus', 'Ferry', 'Cable', 'Gondola', 'Funicular', 'PathWayWalk', 'Wait', 'WaitOnVehicle'
legType?: LegType
Property Value
lengthInMeters
The total distance of the leg in meters.
lengthInMeters?: number
Property Value
number