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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.1
    4
  • 0.5.0
    2
  • 0.4.0
    2
  • 0.3.0
    1
  • 0.2.0
    1

Package Sidebar

Install

npm i rta

Weekly Downloads

9

Version

0.5.1

License

MIT

Last publish

Collaborators

  • cwmma