Skip to content

Instantly share code, notes, and snippets.

@juliuste
Last active November 26, 2023 10:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliuste/f9776a6b7925bc6cc2d52225dd83336e to your computer and use it in GitHub Desktop.
Save juliuste/f9776a6b7925bc6cc2d52225dd83336e to your computer and use it in GitHub Desktop.
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 😄)
@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

@nottjott
Copy link

nottjott commented Mar 2, 2023

ICE 595 from Kiel Hbf to Ulm Hbf (and vice versa) is missing.
For example on the 20th of May 2023, 06:13 (MEZ) departure time.

@MaxHeimbrock
Copy link

Night train EN 60237 from Stuttgart to Rijeka is missing.

@Madwolf2007
Copy link

Missing most trains in Serbia, but the most important one is the high speed train between Belgrade and Novi Sad

@MartinLangbecker
Copy link

MartinLangbecker commented Aug 6, 2023

Auf der Relation München - Bologna werden nur die NJ mit 9-10 Stunden Fahrtzeit angezeigt, aber nicht die EC mit 6-7 Stunden Fahrtzeit. Selbiges gilt auch für Verona und Rimini, Venedig fehlt ab München gleich ganz. Evtl. noch mehr Verbindungen in Richtung Italien?

Edit: Okay, vermutlich liegt es an der Streckensperrung vom 6.-23. August, sodass bis dahin wirklich keine anderen Züge fahren. Wieder was gelernt. Danke! 😄

@EckhardM
Copy link

https://direkt.bahn.guru/?origin=8010085&local=true zeigt die ENs in Frankfurt/Main beim Nahverkehr

@bilykralik16
Copy link

The map doesn't show that Győr and Budapest-Kelenföld stations in Hungary are available by direct trains RJ 1031 and 1035 (operated by RegioJet) from stations in the Czech Republic. Timetables here (the first two of them in section "Jízdní řády"): https://regiojet.cz/stations/372825000

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