Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.44 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.44 KB

njt-api

API for finding trains between two connected stops in an agency. (Called "njt-api" from its initial use for New Jersey Transit)

This is an api created with bottle, with the necessary files to run on Google App Engine. It's use is mostly for duckduckgo's instant answer platform. You can find it at duckduckgo/zeroclickinfo-spice#891

Usage

  1. git clone
  2. Download the GTFS data for each agency you want to use.
  3. Put the zip files in data/<name>/gtfs.zip.
  4. pip install --target lib transitfeed bottle and grab the GAE stuff.
  5. You'll need to patch transitfeed.py. On linux, this command is patch lib/transitfeed.py < transitfeed.py.patch. I would report these errors, but this library hasn't been updated in two years.
  6. python parse.py

That's it. You can now kick off the GAE instance.

Data Sources