SortOrder Data Type

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:
  1. Street only - Street only itineraries are sorted before itineraries with transit
  2. Arrival time - Earliest arrival time first
  3. Generalized cost - Lowest cost first
  4. Number of transfers - Lowest number of transfers first
  5. 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:
  1. Street only - Street only itineraries are sorted before itineraries with transit
  2. Departure time - Latest departure time first
  3. Generalized cost - Lowest cost first
  4. Number of transfers - Lowest number of transfers first
  5. Arrival time - Earliest arrival time first
This is the default for an arrive-by search (arriveBy=true).