Scripts for collecting NextBus data and drawing maps of bus locations and speeds over time.
Scrapes NextBus for bus locations and saves them to a database. Existing data older than 24 hours are deleted from the database.
Generates an image of the last 24 hours (or a specified time period, in seconds, using a "since" parameter). The image is saved twice, once as current.jpg and once as a timestamped image for archiving. (Or alter this to just output the image.)
Creates map tiles by drawing images at several scales and cutting them up.
Simple Leaflet-based map, and mbtiles for a Boston basemap. Tiles served using PHP-MBTiles-Server by Bryan McBride.