Skip to content

Script to parse a GTFS feed and find the next train between two stops.

License

Notifications You must be signed in to change notification settings

ben-e-whitney/next-train

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-train

next-train is a script that finds the next train (bus, ferry, etc.) between two stops. To use it you will need a GTFS feed. Many transit agencies publish feeds. You can find feeds here or here (or just by searching).

Usage

next-train requires Python 3.6 or later. To use it, follow these steps:

  1. Run python3.6 setup.py --install to install the script.
  2. Find and download a GTFS feed.
  3. The script contains a wizard to help you pick a route. To use it, run next-train [feed].
  4. After you have run the wizard, you can run next-train to find the next train.

See the output of next-train --help for more options.

Acknowledgments

next_train/route_types.csv is reproduced from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

About

Script to parse a GTFS feed and find the next train between two stops.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages