- cross-posted to:
- internetisbeautiful@feddit.de
- cross-posted to:
- internetisbeautiful@feddit.de
cross-posted from: https://sh.itjust.works/post/3479990
crosspost from: https://sh.itjust.works/post/3477888
I just came across this tool, which - after entering a city - shows all other cities to which there is a direct train connection. A color code depicts the travel hours.
Examples:
- Lyon → Brussels, 3:37h
- Krakow → Graz, 8:30h
- Ostseebad Binz → Wiesloch-Waldorf, 9:56h
Although I’m not quite sure yet on what occasion I can use the tool. But someday the moment will come :D
Btw. there is a Sparpreis search on https://bahn.guru/ with a monthly view (“On which day do I travel cheapest from A to B?”). Unfortunately the links to the store don’t work yet.
it’s fucking incredible i love it
Really cool took, thanks!
Would be incredible if you could add 1 change, 2 changes etc
That can be done with cp.sk/en . Additionally it shows buses, ships and “other”. But this is rather centered around Slovakia, I think.
It could become rather computationally complex though
It wouldn’t if you calculate it once globally and cache the result. It is not as if the results for the second hop change depending on where the first one came from. The travel times might be tricky though if you want to consider delays between hop 1 arrival and hop 2 departure.
Do you know which source it uses?
Ok, found
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.
https://gist.github.com/juliuste/f9776a6b7925bc6cc2d52225dd83336e