Our APIs
SL's APIs
Obs: Detta innehåll finns inte tillgängligt på svenska. Därför ser du engelska versionen. Om du tycker att denna sida borde översättas till svenska, kan du skriva till oss på support.trafiklab.se.
Om du vill se webbsidan på engelska, klicka här.
SL’s APIs is a collection of 7 APIs which provide information about planned and realtime traffic.
SL has updated their API’s. 7 API’s have become 5:
- SL Transport (new: has replaced Departures v4 & Stops and lines v2)
- SL Deviations (new: has replaced Service Alerts & Traffic Status)
- SL Route-planner v3.1 (updated: new url)
- SL Stop lookup (updated: new url)
- SL Nearby stops 2 (updated: new url)
Well suited for | Not so suited for |
---|---|
Quickly getting the next departures from a stop | Analysing public transport information |
Quickly calculating a route from A to B | Applications requiring huge amounts of API calls |
Digital Signage | Data visualisation |
Mobile applications | Building your own route-planner algorithm |
Websites |
SL’s APIs only offer data for SL’s traffic.
ResRobot offers the same data for
entire Sweden.
If you want to do analytics, or if your service will have more than a million active users, we
recommend using GTFS data directly, or hosting your own API based on GTFS data.