Real time Data
Hello,We currently have GTFS feed for Trafiklab (SE) for Static data. We would like to fully utilize your data and include your Realtime data as well.
Could you please let me know how to set this up in our system. I look forward to hearing from you. Thank you.
Could you please let me know how to set this up in our system. I look forward to hearing from you. Thank you.
- What GTFS feeds do I need to enter that the Realtime aligns to for Sweden Regional?
- How many Realtime feeds do I need?
- How many Static feeds do I need?
Följ inlägget
0
följare
Static data is available on this URL: https://opendata.samtrafiken.se/gtfs-sweden/sweden.zip?key={apikey}.
Realtime data which matches the Swedish national data is available through these URLs:
https://opendata.samtrafiken.se/gtfs-rt-sweden/{operator}/ServiceAlertsSweden.pb?key={apikey}
https://opendata.samtrafiken.se/gtfs-rt-sweden/{operator}/TripUpdatesSweden.pb?key={apikey}
https://opendata.samtrafiken.se/gtfs-rt-sweden/{operator}/VehiclePositionsSweden.pb?key={apikey}
Where operator is one of sl, ul, otraf, klt, skane, varm, dt, xt, vastmanland. This way you can choose for which operators you want to load the realtime data.
In total, you would load 1 static file and 19 realtime feeds. In order to see which operators support which realtime features, you can use the table for GTFS Regional data (https://www.trafiklab.se/api/trafiklab-apis/gtfs-regional/). The website will be updated in the future to more clearly show which operators are available through all different datasets.
Regards,
Bert