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).
next-train requires Python 3.6 or later. To use it, follow these steps:
- Run
python3.6 setup.py --installto install the script. - Find and download a GTFS feed.
- The script contains a wizard to help you pick a route. To use it, run
next-train [feed]. - After you have run the wizard, you can run
next-trainto find the next train.
See the output of next-train --help for more options.
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.