MBTA API API
MBTA data, for those who don't care for XML. Test version running at mbta.calvinmetcalf.com
try mbta.calvinmetcalf.com/list
Install with:
npm install mbta
commands
mbta; ->geojson from the bus GPSmbta; ->returns the MBTA jsonmbta; ->predictions for a stopmbta; ->list of route IDsmbta; ->information about a routembta; -> schedule of the route
It returns a promise so you can omit the callback if your into that. Also included is 'server.js' which can be run with node server.js
and is a simple api endpoint setup with CORS and JSONP enabled.
Not affiliated with the MBTA or MassDOT. Inspired by Tom MacWright's wmataapiapi.