Find direct train connections within Europe
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.
https://direkt.bahn.guru/Open linkView original on discuss.tchncs.de102
Comments7
Really cool took, thanks!
it's fucking incredible i love it
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.
That can be done with cp.sk/en . Additionally it shows buses, ships and "other". But this is rather centered around Slovakia, I think.
Do you know which source it uses?
Ok, found
https://gist.github.com/juliuste/f9776a6b7925bc6cc2d52225dd83336e