schildbach / public-transport-enabler

Unleash public transport data in your Java project.
https://groups.google.com/forum/#!forum/public-transport-enabler-discuss
GNU General Public License v3.0
378 stars 131 forks source link

HAFAS stationboard result has different style #118

Open jlnstrk opened 7 years ago

jlnstrk commented 7 years ago

I would like to add a RmvProvider, nearby locations works and trip queries do as well (these are the ones I tested so far). What I noticed however is that rmv's hafas ignores the L=vs_java3 parameter and just puts out the website code when querying the stationboard: http://www.rmv.de/auskunft/bin/jp/stboard.exe/dn?productsFilter=111111111111&boardType=dep&disableEquivs=1&maxJourneys=10&input=3000010&date=11.11.16&time=22%3A23&L=vs_java3&hcount=0&start=yes There does however seem to be another way to get the data and that is appending &output=xml http://www.rmv.de/auskunft/bin/jp/stboard.exe/dn?productsFilter=111111111111&boardType=dep&disableEquivs=1&maxJourneys=10&input=3000010&date=11.11.16&time=22%3A23&hcount=0&start=yes&output=xml The result of this however has a different and more complicated xml structure, it even is providing intermediate stops, similar to the trip query results, that the current AbstractHafasProvider isn't compatible with. Is this known from other networks and could/will this be added in the future?

schildbach commented 7 years ago

The RNV is actually a mirror of NVV. So you can simply use NvvProvider.java. If you think it's useful you can add parsing of the XML.

jlnstrk commented 7 years ago

@schildbach do you mean RNV or RMV?

schildbach commented 7 years ago

Oh sorry RMV.

jlnstrk commented 7 years ago

@schildbach interesting, who do you know this from?

schildbach commented 7 years ago

You see this from the data the API returns, it's always the same.