You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

transit-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transit-api

Low level API abstractions for transit services.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
4
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 28 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts