-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laterRef is null in v6 API Response #319
Comments
This has been the case for quite a while: https://github.com/public-transport/hafas-client/blob/6.3.1/test/e2e/db.js#L253 Not sure if we can do something about it though, I haven't investigated. Upgrading to a new |
#287 (comment) sounds related. |
Although it doesn't solve the problem, derhuerst/db-rest#46 will let you specify the routing mode in |
Sorry for the delay.
Why doesn't it solve the problem? I would expect that different routing modes for the v6 call would yield |
It is a workaround. Last time I checked, you could choose a non- |
Ahh okay, now I understand. So it's simply not possible anymore with Can we do something about it? Reverse engineering another "endpoint" (e.g., the desktop website still has pagination for realtime data). |
I assume HAFAS doesn't support this.
|
Hmm okay, I don't know the system at all tbh. I checked with my iOS Navigator app and they seem to still use the In general, what is the advantage of |
Description:
When I hit the following API endpoint:
Request:
https://v6.db.transport.rest/journeys?from=8400058&scheduledDays=true&transferTime=7&firstClass=false&bike=false&tickets=false&nationalExpress=true&national=true®ionalExp=true®ional=true&suburban=true&bus=false&ferry=false&subway=false&tram=false&taxi=false&transfers=2&stopovers=false&departure=2024-12-13T12:00:00.000Z&to=8011160&results=20
Response:
I notice that the laterRef field is null.
However, when I use the previous version (v5), the response is different:
Request:
https://v5.db.transport.rest/journeys?from=8400058&scheduledDays=true&transferTime=7&firstClass=false&bike=false&tickets=false&nationalExpress=true&national=true®ionalExp=true®ional=true&suburban=true&bus=false&ferry=false&subway=false&tram=false&taxi=false&transfers=2&stopovers=false&departure=2024-12-13T12:00:00.000Z&to=8011160&results=20
Response:
As shown, both earlierRef and laterRef are present in the response.
Issue Summary:
In version 6, after July 24, 2024, the laterRef field is consistently null in the API response. This behavior is not observed in version 5, where laterRef is correctly populated.
Why laterRef is Needed:
I need the laterRef field because my project involves creating itineraries that include rail components. Users may plan trips for the future, and it is essential to store journey references for accurate itinerary management.
The text was updated successfully, but these errors were encountered: