0.5.1 • Published 11 years ago

rta v0.5.1

Weekly downloads
7
License
-
Repository
github
Last release
11 years ago

RTA API API

RTA transit data from next bus, for those who don't care for XML.

Install with:

npm install rta

commands

rta.locations(route[,since,cb]);
	->geojson from the bus GPS
rta.stop(stop[,cb]);
	->predictions for a stop
rta.list([cb]);
	->list of route IDs
rta.route(route[,cb]);
	->information about a route
rta.schedule(route[,cb]);
	-> 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 Next bus or any transit company. Inspired by Tom MacWright's wmataapiapi.

0.5.1

11 years ago

0.5.0

11 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago