Real time train overview
building2026Live trains, S-Bahn, trams and buses on a desktop map, drawn on top of the operator's own network map.


It started as a Berlin viewer on the VBB map, then moved to Magdeburg and the INSA map. Vue 3 and Leaflet on the front, Rust inside the Tauri process on the back. The Rust commands proxy the HAFAS JSON gateway and normalise the response into plain vehicle positions with a line, a mode, a bearing and a coordinate.
the hard part
INSA has no public API. Live positions come from the JourneyGeoPos method on reiseauskunft.insa.de/bin/mgate.exe, the same radar call the hafas-client insa profile uses. Figuring out the auth and the request shape was most of the work.


