A full stack for public transit to transmit gps, calculate stop delays, and host the protocol buffer file to present that to google maps and other applications.
A full open source implementation from placing gps hardware on the bus to calculating delays on the routes from the real time gps, to hosting the protocol buffer.
-
Buy the parts for tracking gps.
- microcomputer (raspberry pi 3)
- usb gps
- mobile Internet connection.
- touch screen interface - TBD
-
Run the script for turning the gps into an API
git clone https://www.github.com/hansthompson/transit-tracker chmod +x transit-tracker/server-scripts/setup.sh ./transit-tracker/server-scripts/setup.sh
-
Build the protocol buffer server on Ubuntu by installing the dependencies
- apt-get stuff
- R stuff
- GTFS of your agency
-
Start the server
Not open source! And not as a bundle for anyone to deploy in one project!
Please make an issue and I'll respond. We can decide to go with the master or a feature branch.
- figure out how to run /server-scripts/setup.sh from bash for instant deployment
- set up a system for storing tidy_gps functions for each agency (perhaps a seperate repo).
- have the scripts run either on startup or through crontab.
- have the scripts write to the right shiny server app directory/s.
- Set up a script to benchmark the gps feed.