rta

0.5.1 • Public • Published

RTA API API

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

Install with:

npm install rta

commands

var RTA = require('rta');
var rta = new RTA(agency tag, seconds to cache(default is 10));
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 you're into that.

Not affiliated with the Next bus or any transit company. Inspired by Tom MacWright's wmataapiapi.

Keywords

none

Install

npm i rta

DownloadsWeekly Downloads

0

Version

0.5.1

License

MIT

Last publish

Collaborators

  • cwmma