Till senaste kommentaren
Detta inlägg är gammalt och kan innehålla inaktuell information.

Cannot find the metro station: "Hagsätra" via GetSite API

Hi,

I am useing the getsite API, I CANNOT find the station "Hagsätra"
https://api.trafiklab.se/sl/realtid/GetSite.json?stationSearch=Hagsätra&key=xxxxxx
the response is:

Site: {
Number: "3791",
Name: "Hagstråket (Stockholm)"
}

But if I try change the station name from "Hagsätra" to "Hagsatra",
https://api.trafiklab.se/sl/realtid/GetSite.jso...
then the response data is correct.

Sites: {
Site: [
{
Number: "9160",
Name: "Hagsätra (Stockholm)"
},
{
Number: "1992",
Name: "Hagsätramotet (Stockholm)"
},
{
Number: "3791",
Name: "Hagstråket (Stockholm)"
}
]
}

This problem annoys my users very much. Could you guys help to check if the API has some problem? Thank you very much

Kommentarer

  • up

  • help

  • Hi,
    There is a problem with the encoding in GetSite due to a recent change in the journey planner.

    Since this is an old API which is replaced by new services this will not be fixed.

Kommentera eller skriv ett nytt inlägg

Ditt namn och inlägg kan ses av alla. Din e-post visas aldrig publikt.