Fields
The start-time of the search-window/page for trip departure times.
The search-window/page start and end time describe the time-window the search is performed in. All results in the window is expected to be inside the given window. When navigating to the next/previous window the new window might overlap.
Merging results from multiple searches
Trips from separate searches (multiple OTP calls or other search engines) can be merged into the current page/result set if the following conditions are met:
- The page is empty and the candidate trip departure time is between
pageDepartureTimeStartandpageDepartureTimeEnd, or - The candidate trip sorts before the last trip in the current page(if trips exists).
If the trip sorts after the last trip, it should be merged into the next page instead. Note that the sort order is diffrent for arrive-by and depart-after search. The sort vector is:
- Depart-after: departure-time → generalized-cost → number-of-transfers → arrival-time
- Arrive-by: arrival-time → generalized-cost → number-of-transfers → departure-time
Special case for arrive-by searches: For the first request (no paging cursor used)
with arriveBy=true, the pageDepartureTimeEnd can be ignored - trips departing after
this time can still be merged into the current page.
This is the time window used by the raptor search. The input searchWindow is an optional parameter and is dynamically assigned if not set. OTP might override the value if it is too small or too large. When paging OTP adjusts it to the appropriate size, depending on the number of itineraries found in the current search window. The scaling of the search window ensures faster paging and limits resource usage. The unit is minutes.