Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scripts for collecting NextBus data and drawing maps of bus locations and speeds over time
PHP CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
map
php
README.md

README.md

mbta-bus-speed

Scripts for collecting NextBus data and drawing maps of bus locations and speeds over time.

php/getbuses.php

Scrapes NextBus for bus locations and saves them to a database. Existing data older than 24 hours are deleted from the database.

php/image.php

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.)

php/create_tiles.php

Creates map tiles by drawing images at several scales and cutting them up.

map

Simple Leaflet-based map, and mbtiles for a Boston basemap. Tiles served using PHP-MBTiles-Server by Bryan McBride.

Something went wrong with that request. Please try again.