Skip to content

Instantly share code, notes, and snippets.

@juliuste
Last active July 21, 2024 16:15
Show Gist options
  • 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 😄)
@schlomo
Copy link

schlomo commented Jul 21, 2024

Trains Berlin <-> Lutherstadt Wittenberg are missing, even though there are both ICE and RE going on that line.

image image

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