transit-api

1.0.0 • Public • Published

transit-api

Node.js APIs for accessing transit services.

The intent of these APIs is to convert the raw output of transit APIs into JavaScript objects.
It includes little intelligence about what the data should look like.

Included APIs

NextBus (pass agency to constructor or use setAgency)

  • agencyList()
  • routeList()
  • routeConfig(routeTag)
  • predictions(stopId)
  • predictions(routeTag, stopTag)

MBTA

  • subways() - hard coded with list of available lines
  • subway(line)

License

transit-api is available under a BSD 2-Clause License, see the LICENSE file for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i transit-api

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

9.18 kB

Total Files

8

Last publish

Collaborators

  • justjohn