Differences between results in Resrobot and Trafiklab realtime departures API
I have another question now, regarding the differences between the resRobot and the realtime endpoint. It seems to me that the responses when requesting departures are quite different.
I tried the stops 740000001 and 740000002 (Stockholm and Göteburg Centralstation). I would expect similar results for each station with both endpoint, but while the realtime endpoint only shows the trains and busses, the resRobot endpoint shows all modes of transportation. This leads to ~10 (realtime) vs. ~150 (resRobot) departures in a sample request for Stockholm Centralstation.
The example Slussen you mentioned shows no difference, however. Did I miss sth. in the specification?
Thanks,
Michael
I tried the stops 740000001 and 740000002 (Stockholm and Göteburg Centralstation). I would expect similar results for each station with both endpoint, but while the realtime endpoint only shows the trains and busses, the resRobot endpoint shows all modes of transportation. This leads to ~10 (realtime) vs. ~150 (resRobot) departures in a sample request for Stockholm Centralstation.
The example Slussen you mentioned shows no difference, however. Did I miss sth. in the specification?
Thanks,
Michael
Följ inlägget
1
följare
Resrobot has a bit of a special behaviour here, where it will show departures from all stops in a group (meta-stop), when you search for a single stop in that group. Our realtime endpoint allows you to search by group as well, but will not automatically include these grouped stops if you are searching for a specific one.

Try searching with the id 740098000, which is the "Stockholm" meta-stop which you are getting results for in Resrobot. This yields 192 responses in the realtime API.
Using the realtime APIs stop lookup function, you can see which stops are included in different stop groups. A rikshållplats is one or more stops which really belong together (for example a bus and tram stop with the same name), a meta stop is a wider grouping with the goal of including nearby stops which otherwise may be forgotten (e.g. the Södra station bus stop when searching for departures from stockholm södra train station)