juliuste / direkt.bahn.guru

All direct long-distance railway connections for cities in and beyond central Europe.
https://direkt.bahn.guru
GNU General Public License v3.0
373 stars 24 forks source link

[Suggestion] Add virtual "aggregated" stations #13

Open ndrpnt opened 2 years ago

ndrpnt commented 2 years ago

Hi, I'd love to display the direct connections from a city, as opposed to a single station. I.e, have a "Berlin (any station)" option in the search bar.

juliuste commented 2 years ago

I agree that this feature makes sense, however this is not really trivial to get working with the existing datasource(s), especially for the autocompletion/search. Will try to think about possible solutions over the next few days, feel free to ping me again if I forget 😄

AghiadHaloul commented 2 years ago

I was thinking about a similar suggestion as well :)

Maybe instead of having a city as a ~destination~ source, the user could write type in two(+) stations, and then the results from both stations are merged and displayed (duplicates results could show the shorter time).

This is helpful for "twin-cities" situations likes Ulm(BaWü) and Neu-Ulm(Bayern) laying on opposite sides of the river, Mannheim/Ludwigshafen, as well as small towns which have different closest-train-station-that-is-30-mins-away (Harz mountains).