- Home
- JSON
- SortOrder
OTP sort the returned itineraries according to the request arriveBy
flag. The
paging may override the sort order.
Values
value |
description |
STREET_AND_ARRIVAL_TIME |
Sort itineraries in order and break ties by:
- Street only - Street only itineraries are sorted before itineraries with transit
- Arrival time - Earliest arrival time first
- Generalized cost - Lowest cost first
- Number of transfers - Lowest number of transfers first
- Departure time - Latest departure time first
This is the default for a depart-after search (arriveBy=false ). |
STREET_AND_DEPARTURE_TIME |
Sort itineraries in order and break ties by:
- Street only - Street only itineraries are sorted before itineraries with transit
- Departure time - Latest departure time first
- Generalized cost - Lowest cost first
- Number of transfers - Lowest number of transfers first
- Arrival time - Earliest arrival time first
This is the default for an arrive-by search (arriveBy=true ). |