traewelling icon indicating copy to clipboard operation
traewelling copied to clipboard

Allow entering train number directly

Open rugk opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. It is way harder for me to look up and find the nearest/last train stop, then look at the big sign or iceportal.de or so top find out my three/four-digit train number. Also, these are way more characters to write (and make typos). And if you have written these letters completely (and correctly) I may already be at the next train stop… :stuck_out_tongue_winking_eye:

Describe the solution you'd like In the search at "Where are you?" it should allow me to enter "ICE 1234" etc.

Describe alternatives you've considered Current state: I need to enter the station and then additionally select the train. If you need the station, do it in the reverse way (optionally): If I enter/select a train first, then offer me to select the station afterwards.

Also, I see much more trains at one station usually (if you have a big main station or so), so it is really hard to select the correct one. Entering the train number seems easy though. Then you can easily select the train stop (there likely are not that much).

Additional context Of course, you can just implement this in addition to the current mechanism.

rugk avatar Sep 20 '20 21:09 rugk

Hi, thank you very much for your contribution.

Sadly it's technically not possible to easily fetch the train via the linenumber. At least not with our used API. (Even the official App "DB Navigator" did not implement this feature natively. It's just a webview for mobile.bahn.de )

In the future we want to implement a "location based"-feature, wherein your current station will be fetched via the geolocation of your device. At this point of development you're able to directly access your latest visited train stations via the Screen Capture_select-area_20200928162305 icon next to the search bar.

I hope this solution is acceptable for now. Sorry. :disappointed:

HerrLevin avatar Sep 28 '20 14:09 HerrLevin

Well… yeah, thanks for the explanation. Usability/technically said it's not "acceptable", i.e. I'd want a different solution, but if you cannot implement it, you cannot implement it.

BTW, tagging with "good first issue" is misleading IMHO. This tag is usually used to indicate a "low requirements" bug that could be easily fixed by new contributors. See https://yourfirstpr.github.io/ and https://up-for-grabs.net/. Maybe you'd rather want to use "help wanted".

rugk avatar Sep 28 '20 15:09 rugk

Since our used library for HAFAS does not offer such a usable interface I created a quick draft in my native PHP client. Maybe we can use this one for this Issue: https://github.com/MrKrisKrisu/hafas-client-php/pull/4

MrKrisKrisu avatar Oct 24 '22 20:10 MrKrisKrisu