Skip to content

A simple app that exposes endpoints letting you know if an MTA subway line is delayed and for how long relative to its uptime.

Notifications You must be signed in to change notification settings

Anish-Malhotra/MTASubwayStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTASubwayStatus

A simple app that exposes endpoints letting you know if an MTA subway line is delayed and for how long relative to its uptime.

The project is well-commented, but here are some high level details:

  • The project makes use of the GTFS-RT API provided by the MTA
  • Exposes web endpoints at
    • /status -> which takes the name of a particular line as an argument and returns whether or not the line is currently delayed
    • /uptime -> which also takes the name of a particular line as an argument and returns the fraction of time that it has not been delayed since inception
  • The web server and API client run on separate threads using a thread-safe data structure to retain subway line info

About

A simple app that exposes endpoints letting you know if an MTA subway line is delayed and for how long relative to its uptime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages