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
385 stars 133 forks source link

The API used by StockholmProvider.java has been discontinued... #83

Closed regagain closed 8 years ago

regagain commented 8 years ago

...since April 1st, as explained here (in Swedish). As a result, all queries for this provider fail.

They recommend using http://sl.se/ or http://resrobot.se/ instead.

grote commented 8 years ago

The question is if the old API and the new API are the same, so that just the Query URL needs to be changed. On their side, I made a request and this URL was called:

http://sl.se/api/sv/TravelPlanner/SearchTravelById/Karl%20XII;s%20torg%20(Stockholm)/Torsvik%20(Liding%C3%B6)/1023/9252/null/depart/sv/null/null/2,8,1,4,96,/null/null/null/null/null/false/null/0/0/null/false
schildbach commented 8 years ago

StockholmProvider is Hafas-based. So it won't be able to read the API @grote suggests.

I wonder if SeProvider already has all the data we needed. It uses http://samtrafiken.hafas.de/bin/, and according to my comments at some point in time (months ago) both http://reseplanerare.resrobot.se/bin/ and http://api.vasttrafik.se/bin/ seemed to point to the same API.

regagain commented 8 years ago

I checked today & yes, SeProvider has all the Stockholm data.

PS: I apologize for the late reply.

schildbach commented 8 years ago

Fixed via 26621e5.