nextbus middleware api
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is an extremely simple wrapper API around nextbusjs for people who don't want to use javascript. It is currently hosted on heroku.

The base URL is:

URL Parameters Description
/route/$ROUTE $ROUTE is a route tag List of predictions for the requested route
/stop/$STOP $STOP is a stop tag OR stop title List of predictions for the requested stop
/active List of active routes and stops (ie, buses are running)
/nearby/$LAT/$LON $LAT and $LON are latitude and longitutde Nearby stops to the given lat lon
/locations Vehicle locations. This always gets the vehicles which have moved in the last 15 minutes.
/config Retrieves the 'agency cache'. This contains a list of all routes and stops, as well as a sorted array of routes and stops for display in the app.