Checkout busti.me for live example.
Python/Django app process and visualize public transport vehicle positions using GPS coordinates. This collection of programs are able to detect current nearest stop, vehicle direction, real-time timetable, sleeping state (not moved for a long time), zombie state (broken vehicles).
- bus
- trolleybus
- tramway
- inter-city bus
- shuttle bus
- high optimization for rapid server replies
- websocket real-time updates
- modern HTML5 standard compliance
- simplified version for older devices and browsers (even with no JS)
- OpenStreetmap support
- Rainsys system updates only changed information (broadcasted via websocket)
- "MultiBus" technology allows to track all vehicles of selected route
- Install Ubuntu 14.04 LTS (tested)
- Make virtualenv and install pip packages from
docs/pips/pips.freeze
- Initialize Django environment
- Fill in city, bus, bus stop and route tables
- Generate list of stops for JS at
utils/nbusstops-export.py
- Edit zbusupd.py according to active cities
- Install supervisor and daemons from the
addons
list - Run
Optionally you could install:
- Semantic UI (CSS framework)
- r.js optimizer (compile collection of JS in one file)
- GeoLite2 (for user's city detection by IP address)
Scripts for building CSS and JS: 99-release-*.sh
Published under MIT license.