This project uses the TfNSW Open Data Public Transport - Realtime Vehicle Positions API to display the realtime positions of Sydney trains.
- Colour-coded train lines plotted on a base map
- Realtime positions of Sydney and intercity trains, refreshed every 5 seconds
- Mouseover popups displaying route, number of carriages and train set type
pip install -r requirements.txtpython testServer.py
- TfNSW Open Data, Public Transport - Realtime Vehicle Positions API
- Mapbox - base map, markers and popups
- Python - general data wrangling and web server
- Protocol buffers - serialising structured data
https://sydneytrains.herokuapp.com/
Ben Mitchell, for his patience, hacky server workarounds, and debugging prowess.