Skip to content

virajrai/livesubway

 
 

Repository files navigation

Live Subway

Build Status

Live Subway is a project to provide real-time visualization of the NYC subways, using the real-time MTA data feeds, written with Flask and Mapbox GL JS.

API endpoint: http://datamine.mta.info/files/[key]/gtfs

MTA .proto Files

  1. Download: Google GTFS Realtime Proto
  2. Download: MTA Subway Proto (remove the .txt extension)

Environment Setup

  1. Download: protoc-[version]-[OS].zip from the list of latest Protobuf releases.
  2. go into [unzipped_dir]/bin
  3. move protoc binary into $PATH
  4. run protoc --python_path=[WORKING_DIRECTORY] gtfs-realtime.proto
  5. run protoc --python_path=[WORKING_DIRECTORY] nyct-subway.proto
  6. create API_KEY.py add the line key = APIKEY
  7. create a static_transit directory in root directory and add the static .txt files there
  8. run python scripts/static_to_json.py
  9. run python app.py and point browser to localhost:5000 to test success

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.3%
  • JavaScript 29.7%
  • HTML 7.0%