About Trafiklab Radar
Trafiklab Radar is a real-time map showing the positions of public transport vehicles in the Stockholm region (SL) – buses, trams, metro, trains, and ferries.
How it works
Vehicle positions are fetched every 10 seconds from the GTFS Regional Realtime feed provided by Trafiklab. The feed is published by Samtrafiken and contains live vehicle positions for SL (Storstockholms Lokaltrafik).
Architecture
- Frontend: SvelteKit with Leaflet.js for the map.
- Map tiles: OpenStreetMap.
- Real-time data: GTFS Regional Realtime (VehiclePositions feed) from Trafiklab.
- Hosting: Cloudflare Pages.
Data sources
This site uses open data from Trafiklab, a collaboration between the Swedish public transport authorities and Samtrafiken. The data is provided under the CC BY 4.0 license.
Inspired by sl-map.gunnar.se.