derf / travelynx

Traewelling-inspired journey logger with realtime data
https://travelynx.de
GNU Affero General Public License v3.0
121 stars 20 forks source link

No live updates of data in some edge cases #183

Closed Ein-Tim closed 2 days ago

Ein-Tim commented 1 week ago

It seems like there is some weird edge case which causes travelynx to not pull live updates for some stations from IRIS. I have experienced this once or twice in the past and now again. To make it more understandable what the problem is, here is what I experienced today: I checked into the ICE 725 to München Hbf. I checked in at "Frankfurt (Main) Hbf". I checked in as early as possible, as the train was delayed, this was ca. 65 minutes before departure. Now travelynx shows that the ICE has left Frankfurt at 18:49, while actually we have left Frankfurt at 18:54. This can also be confirmed by taking a look at bahn.expert (link to the journey). I confirmed that I checked into the ICE using IRIS.

Here's a screenshot of the problem. Take a look and compare the times of departure which are shown on bahn.expert and on travelynx.

Bildschirmfoto 2024-11-18 um 19 38 54
Ein-Tim commented 2 days ago

Today again:

This time, I checked in ca. 2 minutes before the scheduled departure.

Ein-Tim commented 2 days ago

Tried whether checking out and back in to the trip or via bahn.expert solves this, it does not.

derf commented 2 days ago

According to IRIS data, EC 110 / RJ 110 departed Salzburg Hbf on time at 20:00.

So it looks like the backend used by bahn.expert is slightly more accurate than IRIS data in some cases, or IRIS data quality has degraded – the backend is so deprecated that it looks like Deutsche Bahn is actually considering to determine a date at which they will put it out of service.

You can try whether switching to HAFAS gives you higher data fidelity. If that does not help either, there's nothing I can do with the APIs I currently have at my disposal.

Ein-Tim commented 2 days ago

@derf

So it looks like the backend used by bahn.expert is slightly more accurate than IRIS

Oh, that's new to me! I always thought that bahn.expert uses IRIS too. Now I also understand the README of https://github.com/marudor/bahn.expert better.

It's also very interesting that DB is considering shutting down IRIS, thanks for letting me know! May I ask whether you know if they plan to replace it with HAFAS or some completely new API?

You can try whether switching to HAFAS gives you higher data fidelity.

Sounds good, I will try that.

If that does not help either, there's nothing I can do with the APIs I currently have at my disposal.

Absolutely understandable, thank you so much for your response.

Have a nice evening!

derf commented 2 days ago

Unfortunately, DB HAFAS is also deprecated, at least as far as I am aware.

bahn.de, DB Navigator and related services have switched to a custom family of APIs called RIS::Boards, RIS::Journeys, etc. – see https://developers.deutschebahn.com/db-api-marketplace/apis/product → "RIS-API". I know how to get started with them, but doubt that I'll get around to that within the next months. Unlike HAFAS and EFA, the RIS family of APIs is DB-specific, so implementing them is relatively thankless work that I'll likely postpone until both HAFAS and IRIS are offline or very close to being offline.

Have a nice evening as well, I hope my first reply didn't come off as overly harsh :)

Ein-Tim commented 2 days ago

Unlike HAFAS and EFA, the RIS family of APIs is DB-specific, so implementing them is relatively thankless work that I'll likely postpone until both HAFAS and IRIS are offline or very close to being offline.

Very understandable and very unfortunate of Deutsche Bahn that they are going some special way here...

Don't worry about your first reply, it wasn't harsh at all!