Error in Response Result (Centralen To Kista Route Index ) SL
hi i think there is a problem in the response result. When i query
from : centralen
to: Kista
the route index for kista in the trip suggestion is returned as 10 while in map geom reference data , the intermediate stops has Kista Array Index is 9. The index are correct until hallonbergen but from further towards Akalla they are wrong. the remaining all should be deducted with 1 integer. i am attaching two pictures.
1) Trip suggestion: You will see the route index for kista is 10 mentioned in the JSON response for trip suggestion
2) GeomReference or intermediate stops: you will see the array index for kista is 9 while in the detail of kista , the route index is mentioned as 10. i think its a bug because you see same route index in detail as the stop real array index from centralen to hallonbergen.
Thanks and
Best Regards
Farrukh Qamar
Hello Farrukh,
I need more details from You.
Please, provide also the actual call that You make so that we can investigate it further.
Best regards, Åke
SL Travel Planner 2
here is the call to the trip suggestion for
From is centralen
to is kista
the call is
https://api.sl.se/api2/TravelplannerV2/Trip.json?key=[key]&originId=1002&destId=9302&searchForArrival=0&realtime=true
and then i call the following so that i can draw the map with the help of intermediate stops between centralen and kista
Please check the index of kista in the above call
then try to relate that with he index from the below call
https://api.sl.se/api2/TravelplannerV2/journeydetail.json?key=[key]&ref%3D858072%2F290611%2F237536%2F167257%2F74%3Fdate%3D2016-08-17%26station_evaId%3D400103051%26station_type%3Ddep%26lang%3Dsv%26format%3Djson%26
this above url brings the intremediate stops info
and the indexes are wrong from kista to akalla.
the above URLs has my key.
thanks
Hi Farrukh
It exist a station between Hallonbergen and Kista called Kymlinge, but the train dont stop at that station right now. Thats probably why Hallonbergen have index 8 and Kista have index 10.
Best regards
Daniel