1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# Leg
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**mode** | [**models::Mode**](Mode.md) | Transport mode for this leg |
**from** | [**models::Place**](Place.md) | |
**to** | [**models::Place**](Place.md) | |
**duration** | **i32** | Leg duration in seconds If leg is footpath: The footpath duration is derived from the default footpath duration using the query parameters `transferTimeFactor` and `additionalTransferTime` as follows: `leg.duration = defaultDuration * transferTimeFactor + additionalTransferTime.` In case the defaultDuration is needed, it can be calculated by `defaultDuration = (leg.duration - additionalTransferTime) / transferTimeFactor`. Note that the default values are `transferTimeFactor = 1` and `additionalTransferTime = 0` in case they are not explicitly provided in the query. |
**start_time** | **String** | leg departure time |
**end_time** | **String** | leg arrival time |
**scheduled_start_time** | **String** | scheduled leg departure time |
**scheduled_end_time** | **String** | scheduled leg arrival time |
**real_time** | **bool** | Whether there is real-time data about this leg |
**scheduled** | **bool** | Whether this leg was originally scheduled to run or is an additional service. Scheduled times will equal realtime times in this case. |
**distance** | Option<**f64**> | For non-transit legs the distance traveled while traversing this leg in meters. | [optional]
**interline_with_previous_leg** | Option<**bool**> | For transit legs, if the rider should stay on the vehicle as it changes route names. | [optional]
**headsign** | Option<**String**> | For transit legs, the headsign of the bus or train being used. For non-transit legs, null | [optional]
**trip_to** | Option<[**models::Place**](Place.md)> | final stop of this trip (can differ from headsign) | [optional]
**route_color** | Option<**String**> | | [optional]
**route_text_color** | Option<**String**> | | [optional]
**route_type** | Option<**i32**> | | [optional]
**agency_name** | Option<**String**> | | [optional]
**agency_url** | Option<**String**> | | [optional]
**agency_id** | Option<**String**> | | [optional]
**trip_id** | Option<**String**> | | [optional]
**route_short_name** | Option<**String**> | | [optional]
**route_long_name** | Option<**String**> | | [optional]
**trip_short_name** | Option<**String**> | | [optional]
**display_name** | Option<**String**> | | [optional]
**cancelled** | Option<**bool**> | Whether this trip is cancelled | [optional]
**source** | Option<**String**> | Filename and line number where this trip is from | [optional]
**intermediate_stops** | Option<[**Vec<models::Place>**](Place.md)> | For transit legs, intermediate stops between the Place where the leg originates and the Place where the leg ends. For non-transit legs, null. | [optional]
**leg_geometry** | [**models::EncodedPolyline**](EncodedPolyline.md) | |
**steps** | Option<[**Vec<models::StepInstruction>**](StepInstruction.md)> | A series of turn by turn instructions used for walking, biking and driving. | [optional]
**rental** | Option<[**models::Rental**](Rental.md)> | | [optional]
**fare_transfer_index** | Option<**i32**> | Index into `Itinerary.fareTransfers` array to identify which fare transfer this leg belongs to | [optional]
**effective_fare_leg_index** | Option<**i32**> | Index into the `Itinerary.fareTransfers[fareTransferIndex].effectiveFareLegProducts` array to identify which effective fare leg this itinerary leg belongs to | [optional]
**alerts** | Option<[**Vec<models::Alert>**](Alert.md)> | Alerts for this stop. | [optional]
**looped_calendar_since** | Option<**String**> | If set, this attribute indicates that this trip has been expanded beyond the feed end date (enabled by config flag `timetable.dataset.extend_calendar`) by looping active weekdays, e.g. from calendar.txt in GTFS. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|