You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...has a 13-minute walk to the bus stop. The query time is 21:02, but the journey starts at 20:49 with a 13-minute walk, ending at the bus stop where the bus leaves at 21:02. It appears to be doing the search such that it finds the right bus/train/etc starting at the given time, then tacks a walk to the beginning.
(This is using the beta API)
The text was updated successfully, but these errors were encountered:
The timetable.search.ch API behaves exactly like the timetable.search.ch website.
Except for now-queries (empty/missing time and date) the first result will actually be the last connection before the given time. The reasoning is, that the user might not be very exact with his given time and wouldn't see the 07:58 connection when entering 08:00 otherwise.
I did the above query at 21:02 this evening without the time parameter and it returned exactly the same response. I only added the 21:02 so my bug report would stay consistent.
So if I'm understanding you correctly, if I want the connection that leaves after the specified time, I should always pick connection #2 (if present)?
So then Transport API probably turns the empty time in an exact time when doing the subrequest.
This is a bug, it should just use whatever time/date was given in the input.
Probably because the SBB API always required a time. Will try to check if we can simply remove that or if we still use that time somewhere for internal calculations.
When calling /connections, if there is an initial walk it is ignored for start time estimation, essentially making the journey start in the past.
For example, this query:
https://transport-beta.opendata.ch/v1/connections?from=47.279,8.5683&to=Z%C3%BCrich%20HB&time=21:02:00&transportation[]=s_sn_r
...has a 13-minute walk to the bus stop. The query time is 21:02, but the journey starts at 20:49 with a 13-minute walk, ending at the bus stop where the bus leaves at 21:02. It appears to be doing the search such that it finds the right bus/train/etc starting at the given time, then tacks a walk to the beginning.
(This is using the beta API)
The text was updated successfully, but these errors were encountered: