Fetching nearby subway stations
Hej !
I am new here and I am building an android app providing real time info about subways for a school project.
I want to fetch nearby subway stations given a location (latitude and longitude), and look for next departures. I looked into "Närliggande hållplatser", but I have some questions :
When using this API, do I get also metro stations ? or only bus stops ?
Then if I do get metro stations, is there a way to retrieve just the metro station ? That would be convenient 😀 Or do I have to check with another API wether or not the results I retrieved are subway stations ?
And if I can't get metro stations, where can I find this information ?
Följ inlägget
0
följare
Hi Rémi,
I suggest:
1) "SL Hållplatser och Linjer 2" can be used to retrieve all metro station stoppoints (retrieve once)
2) "Närliggande hållplatser" returns all stops, including metro station stops. The result should be filtered with the data from step 1.
3) "SL Realtidsinformation 3" can be used to get the next departures..
I hope this helps
Best regards
Erik B.
I see, I'll do it this way.
Thank you a lot !
Br,
Rémi