Skip to content

API for finding trains between two connected stops in an agency

License

Notifications You must be signed in to change notification settings

mattr555/njt-api

Repository files navigation

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

About

API for finding trains between two connected stops in an agency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages