Skip to content

Instantly share code, notes, and snippets.

@juliuste
Last active January 6, 2023 11:13
Embed
What would you like to do?
direkt.bahn.guru

Why are some trains missing from the map?

direkt.bahn.guru internally uses a (legacy) API by Deutsche Bahn to find all direct trains running via a given station within the next 1-2 weeks. This API includes most trains in central Europe, but data availability gets significantly lower the further away stations are from routes (co-)operated by DB. Furthermore, trains operated by smaller companies seem to be missing more often than those run by state-owned operators, probably due to a lack of data sharing agreements.

Why do we use this DB-specific API in the first place? Unfortunately, there still isn't any public dataset available which covers all public transport routes in Europe (or even the EU, at least). Some countries don‘t provide data at all, others only publish data per region and operator (e.g. France), which is very hard to combine into a single dataset. See also: https://eu.data.public-transport.earth

That being said, we‘ll try to use a more complete data source as soon as one becomes available.

Can I help to fix this?

Yes, you could (e.g.):

  • comment below if you found a train that should be on the map, but isn't (please mention the train number and operator, and destination, if possible) to help us understand these edge cases
  • raise awareness for this issue (the lack of data) by contacting politicians in your country, complaining about it on Twitter, etc. (be creative 😄)
@pulkomandy
Copy link

Hello,
None of the lines from https://en.wikipedia.org/wiki/Rodalies_de_Catalunya appears on the map (for example when looking at Barcelona Sants or Latour de Carol stations)

@rgerland
Copy link

rgerland commented May 8, 2022

Hey,
A train station is missing in France : 'Marne-la-Vallée Chessy' is located at Disneyland Paris (postal code 77700) and gets TGV Inoui, Ouigo, Thalys and Eurostar : https://en.m.wikipedia.org/wiki/Marne-la-Vall%C3%A9e%E2%80%93Chessy_station . The train station is connected with the regional train service (RER lane A).
Not to be confused with 'Chessy' (postal code 69380) which is near Lyon and has a train station too :) (and that one is already on the map)

@Aakser
Copy link

Aakser commented May 10, 2022

Hi,
There seems to be an error with Aix en Provence TGV station in France.
This city has 2 stations (a high speed and a low speed one), but both gives the same results, which are the one from the low speed station :
image
image

The high speed (Aix en provence TGV) one is the most interesting with your tool though ...
To me it look like it's just a copy paste duplicate or an error in pointing to the right station ...

THank you for this wonderfull tool though

@juliuste
Copy link
Author

Hey everyone, thanks for reporting these issues, you're a huge help! 🙂

I'm still not sure why some trains are missing, but I found (and fixed juliuste/direkt.bahn.guru@ddfea9f) a quite significant bug on my side where the station search would not show stations that had express trains only, without any regional/normal-speed traffic. This should at least cover the cases mentioned by @Aakser (Aix-En-Provence TGV) and @rgerland (Marne-la-Vallée Chessy), these stations should now be visible in the search.

Regarding the issues mentioned by @alterisian and @pulkomandy (the Eurostar one), these seem to be fixed too, but I'm not 100% sure if that's related, please double-check and confirm that, if you can.

Again thanks to everyone, please keep reporting here. (PS: Sorry for the late response from my side 😅)

@pulkomandy
Copy link

Eurostar seems to be working now, thanks 😄

For the other issue I will open a dedicated ticket on the issue tracker, I think that's more convenient :)

@QGgWW2WhH
Copy link

Night train vienna to Split missing

@archdderwydd
Copy link

Munich-Paris ICE9576 and Paris-Munich ICE9577 both missing.

@Donautalbahner
Copy link

International EC trains Frankfurt - Klagenfurt (every two hours) are missing. I.e. EC 113.

@rekatab
Copy link

rekatab commented May 24, 2022

Are S-Bahn (by DB) not supported?

@alterisian
Copy link

Málaga now seems to be included. Thanks for fixing that :)
https://direkt.bahn.guru/?origin=7100045

Happy to get involved in any #mobprogramming efforts to fix future bugs.

@nieebel
Copy link

nieebel commented May 24, 2022

Frankfurt (via Heidelberg) - Zagreb is missing (EC113/112/213/212)
LubljanaDirectTrainEC

@kthy
Copy link

kthy commented Jul 29, 2022

Eurostar connection from Lille Europe to London St. Pancras is missing. It's showing up for Bruxelles-Midi, as well as the opposite direction.

@EckhardM
Copy link

image
No trains from Weimar to Erfurt?

@arparkinson
Copy link

All stations north of Belfast are missing (all services operated by Northern Ireland Railways, a subsidiary of Translink), including Derry, Ballymena, Coleraine, Portrush, Larne, Antrim, Carrickfergus, Bangor.

@magnper
Copy link

magnper commented Aug 1, 2022

MTRX stops in Varberg, Falkenberg, Halmstad, Laholm and Båstad are missing - they have direct connections with Stockholm C, Flemingsberg, Södertälje Syd, Katrineholm, Skövde, Falköping, Herrljunga, Alingsås, through a daily service during summer (at least the current one, lasting a few more days). Some of this stations are only serviced with a single train a week (different stopping patterns between Stockholm and Gothenburg part of the distance depending on weekday).

https://mtrx.travel/static/Tidtabell%20med%20bor%C3%A5s%2027%20juni%20-%2014%20aug%202022_EN.pdf

Varberg already connects to Herrljunga through other trains.

@magnper
Copy link

magnper commented Aug 1, 2022

Some of the connections through Snälltåget night trains between Sweden and Germany seem to be missing.

The most telling example I found is that Höje Taastrup in Denmark should be connected through a whole bunch of Swedish rail stations up towards Stockholm, but isn't. It should also be connected direct to Berlin and not only to Hamburg in Germany. There are also errors the other way around - e.g. Eslöv in Sweden should be connected to Höje Taastrup, but isn't.

https://tagtidtabeller.resrobot.se/tidtabell/_31060.pdf

@magnper
Copy link

magnper commented Aug 1, 2022

@kthy
Copy link

kthy commented Aug 1, 2022

The most telling example I found is that Höje Taastrup in Denmark should be connected through a whole bunch of Swedish rail stations up towards Stockholm, but isn't. It should also be connected direct to Berlin and not only to Hamburg in Germany.

Nope. Since the opening of the Copenhagen-Ringsted line in 2019, Høje Taastrup doesn't have any long distance connections anymore. If you try to book a journey on snalltaget.se, you can pick "Höje Taastrup" as a stop, but when you actually try to book it, it correctly shows the train calling at the new station Køge Nord some 20 km away.

@magnper
Copy link

magnper commented Aug 1, 2022

@kthy, you're right. Seems the info from Snälltåget is erroneous in this case. Sorry for misleading bug!

@magnper
Copy link

magnper commented Aug 1, 2022

Spurious rail connection Skellefteå- Luleå- Haparanda which does not exist in real life (yet).

https://direkt.bahn.guru/?origin=7400089

This is likely a bug in input data, there is a regional bus number 20 as far as i know, but no day trains at all to Skellefteå. But at DB it shows up as a regional train.

There has been talk about reopening the night train connection this year (see e.g. https://www.vy.se/vygruppen/press-och-nyheter/pressmeddelanden/2021/nattaget-norrland-kommer-till-skelleftea ) but that train doesn't seem to be currently running through Skellefteå and I can't find a timetable making it clear if it's something that e.g. will happen only part of the year).

@fiadliel
Copy link

fiadliel commented Aug 4, 2022

The most telling example I found is that Höje Taastrup in Denmark should be connected through a whole bunch of Swedish rail stations up towards Stockholm, but isn't. It should also be connected direct to Berlin and not only to Hamburg in Germany.

Nope. Since the opening of the Copenhagen-Ringsted line in 2019, Høje Taastrup doesn't have any long distance connections anymore. If you try to book a journey on snalltaget.se, you can pick "Höje Taastrup" as a stop, but when you actually try to book it, it correctly shows the train calling at the new station Køge Nord some 20 km away.

According to https://www.snalltaget.se/en/traffic-information, the site will soon be correct (in 2 months):

Track works in Denmark until October 2
De to limited track access Høje Taastrup, the trains will stop at Køge Nord and Ringsted instead of Høje Taastrup.

@MatthiasMass
Copy link

The Eurostar trains starting on the bahn.de site from "Paris Nord Eurostar" seem to miss actually. Only "Paris Nord" without "Eurostar" is available, but there are no trains to London. Similar for the Eurostar Stations "London St.Pancras International" and "Bruxelles-Midi Eurostar"

@GS-2001
Copy link

GS-2001 commented Aug 21, 2022

@mornau
Copy link

mornau commented Nov 3, 2022

Lovely tool!
You're currently missing (night train) D 300 from Berlin Hbf to Stockholm Central (via Hamburg Hbf, Malmö Central), operated by Snälltåget.
https://www.snalltaget.se/en/berlin

@ms690000
Copy link

Maybe you can also use this:
https://data.oebb.at/#default/datasets
additionally to the DB-API

By the way, great tool! Love it

@jordidume
Copy link

Hello,
In Catalonia are missing many trains from Rodalies network (https://rodalies.gencat.cat) and from FCG network (https://www.fgc.cat), some of them with international connections.
And congrats for the web, it is awesome :)

@Robot8A
Copy link

Robot8A commented Nov 29, 2022

Hello, None of the lines from https://en.wikipedia.org/wiki/Rodalies_de_Catalunya appears on the map (for example when looking at Barcelona Sants or Latour de Carol stations)

Hello,
In Catalonia are missing many trains from Rodalies network (https://rodalies.gencat.cat/) and from FCG network (https://www.fgc.cat/), some of them with international connections.
And congrats for the web, it is awesome :)

Indeed, in Spain the only Renfe trains that appear are MD, LD and AV (except Avlo).
Cercanías (that includes Rodalies and ex-FEVE lines) do not appear, nor do trains from operators that are not Renfe (FGC, Euskotren, FGV, SFM, Ouigo España, Iryo).

@AbelsYT
Copy link

AbelsYT commented Dec 8, 2022

They si a train missing. It’s the 469 Nightjet from Paris Est to Wien Hauptbahnhof
61E7D660-6119-44F2-A0D6-A3331DDB6E97

@leroyrene
Copy link

Woah. This is very cool. Thanks for making it. It seems like Málaga shows up in the results for other stations (Madrid & Barcelona), but not in the search itself. How can I help fix it? Ian https://196destinations.com DirektBahnGuru_Barcelona direcktBahnGuru_Madrid

Same remark : information works from Spain to France but not the other way around
(Train from Barcelona to Marseille also runs from Marseille to Barcelona.)

Capture d’écran du 2022-12-29 09-57-23
Capture d’écran du 2022-12-29 09-57-52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment