MBTA Google Maps mashup

The MBTA provides a real-time feed of locations of vehicles on its bus, subway, commuter rail, and ferry routes.

This is a little mashup which takes that real-time data and plots it on Google Maps. Choose a route from the pull down menu below and markers will appear with the latest locations of its buses. Markers will update with the latest information from the T every 10 seconds. Click on a stop marker to see predictions for when the next vehicle will arrive.

It is built in about 300 lines of very amateur JavaScript. It uses the MBTA real-time API to get the data from the MBTA. Source code is available on GitHub.

If you have any questions or comments, please feel free to email or tweet them to me.

The original version of this site went up on 14 November 2009, one day after the MBTA first made this data available for buses. It has been updated periodically since then. The latest update came on 13 July 2015, when the site was ported from the now-discontinued Proximobus API to the MBTA’s official v2 API. This change brought in subway, commuter rail, and ferry locations in addition to buses.