fahrplan icon indicating copy to clipboard operation
fahrplan copied to clipboard

Add list of intermediate stops of connection (Zwischenhalte)

Open dimpflmoser opened this issue 12 years ago • 15 comments

dimpflmoser avatar Dec 05 '12 22:12 dimpflmoser

Should be quite easy possible for sbb, öbb, rejseplanendk and nri . Only question is, how to display it.

smurfy avatar Dec 05 '12 22:12 smurfy

I can imagine that data retrieval is easy, adapting the layout may be much harder. What about a popup window when you click on the train with the list of the stops.

dimpflmoser avatar Dec 05 '12 22:12 dimpflmoser

That's less intrusive enough. What about db.de? No such possibility?

MoritzJT avatar Dec 06 '12 19:12 MoritzJT

for bahn.de, fahrplan currently parses the mobile website, which dont provide the intermediate stops. I will check again for a possible solution

smurfy avatar Dec 06 '12 22:12 smurfy

I was wondering where you get your information from, as I wasn't aware of a public API.

If you open the page 'Verbindungsdetails' the train number has a link with all the stops/stations of the train. Personally I would prefer to have a list of all stops/stations of that train instead of just the stops within the chosen connection.

dimpflmoser avatar Dec 06 '12 23:12 dimpflmoser

i just noticed bahn.de added this feature quite recently to the mobile.bahn.de and broke the details window at least for me

I try to fix it and later parse it.

smurfy avatar Dec 09 '12 01:12 smurfy

Regarding "via" support for bahn.de - I've seen that it's possible to set "via" station on mobile.bahn.de website when I was porting Fahrplan to Symbian. It looked pretty easy to add "via" support to Fahrplan but when I tried, I hit one obstacle: when you go to mobile.bahn.de the "via" field is not visible originally and to make it visible you need to press "More search options" button which sends a POST request. If you check the URL after that it contains few parameters that seem session-specific (e.g., ...eox?ld=96236&...&i=g5.021734236.1355247526&...). The problem here is: if you try to do a request without these parameters, then "via" station is ignored. Seems like to make it work you have to do an additional request to the website to get the parameters (they can be parsed from form's action URL) and then request a route with "via" station. That's where I stopped trying at that time :-)

leppa avatar Dec 11 '12 17:12 leppa

hi, i changed the backend to a binary interface. that interface supports via station, i just not had the time adding it.

smurfy avatar Dec 11 '12 18:12 smurfy

Just as an update, i added Via support for the new bahn.de backend aswell.

About the intermediate stops, they should be also possible now, but i have no time to add them right now. I want to release a new version as soon as possible because of #22

smurfy avatar Dec 11 '12 20:12 smurfy

I will take a look at this feature. I think this one should be an optional one. global settings or a toggle button at the details page.

smurfy avatar Sep 11 '13 18:09 smurfy

I think, best solution would be to make transportation name inside a trip section clickable (or add a button there).

leppa avatar Sep 11 '13 19:09 leppa

https://github.com/marcusschiesser/openbahn-api

did you check this out? could be useful, if you don't know it already

ghost avatar Dec 11 '14 17:12 ghost

@gusvoi Yea i already know that, but it uses a different aproach.

All parser related stuff is there for this issue, but it takes time to adapt everything to gui :)

smurfy avatar Dec 13 '14 17:12 smurfy

Hi Smurfy, if I can help somehow, let me know. I'm currently learning to program (which probably won't be of much help), but if I can help in any other way, let me know. I would love to support the app. From what I read on a few articles using the data of db and other public transit organization's data is pretty difficult. They seem to hold it back on purpose.

ghost avatar Dec 13 '14 19:12 ghost

Hi Smurfy, do you have any news about this feature? This would be very nice! Thanks

mbpilotuser avatar May 01 '18 17:05 mbpilotuser