Open ahmadhash opened 3 months ago
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 ver
might work?
https://github.com/public-transport/hafas-client/issues/287#issuecomment-1609121167 sounds related. cc @lamBOOO
Although it doesn't solve the problem, https://github.com/derhuerst/db-rest/pull/46 will let you specify the routing mode in db-rest#6
a.k.a. https://v6.db.transport.rest, once merged & deployed.
Sorry for the delay.
Although it doesn't solve the problem, https://github.com/derhuerst/db-rest/pull/46 will let you specify the routing mode in db-rest#6 a.k.a. https://v6.db.transport.rest/, once merged & deployed.
Why doesn't it solve the problem? I would expect that different routing modes for the v6 call would yield earlierRef
and earlierRef
or am I missing something? Isn't this issue here exactly about https://github.com/derhuerst/db-rest/issues/31#issuecomment-1609128384? 🤔
It is a workaround. Last time I checked, you could choose a non-REALTIME
routing mode and get earlierRef
and laterRef
. But the endpoint didn't seem to allow pagination on realtime-routed results/journeys.
Ahh okay, now I understand. So it's simply not possible anymore with REALTIME
to have pagination?
Can we do something about it? Reverse engineering another "endpoint" (e.g., the desktop website still has pagination for realtime data).
So it's simply not possible anymore with
REALTIME
to have pagination?
I assume HAFAS doesn't support this.
Can we do something about it? Reverse engineering another "endpoint" (e.g., the desktop website still has pagination for realtime data).
mgate.exe
REALTIME
mode (routing on the realtime-updated graph), or if it just does it like the HYBRID
mode (routing on the schedule data graph, then update results with realtime data, then filter results). I'd say that you'll be able to find some specific cases to tell if you dig long enough.hafas-client
much because it's a completely different system, AFAIK with a non-stable public API (if any).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 mgate.exe
with REALTIME
there.
In general, what is the advantage of REALTIME
to HYBRID
? I mean, using the mobile apps (although they use HYBRID
) feels like "real-time" 🤔
Description:
When I hit the following API endpoint:
Request:
Response:
I notice that the laterRef field is null.
However, when I use the previous version (v5), the response is different: Request:
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.