Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinc/timetable
Construct timetables from General Transit Feed Specification (GTFS)
https://github.com/vinc/timetable
gtfs transitfeed
Last synced: 3 months ago
JSON representation
Construct timetables from General Transit Feed Specification (GTFS)
- Host: GitHub
- URL: https://github.com/vinc/timetable
- Owner: vinc
- License: mit
- Created: 2017-12-31T22:33:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T21:45:00.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T01:13:09.800Z (4 months ago)
- Topics: gtfs, transitfeed
- Language: Rust
- Homepage:
- Size: 103 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Timetable
=========Construct timetables from General Transit Feed Specification (GTFS).
Visit http://transitfeeds.com to get gtfs zip files.
TODO
----- [x] Download gtfs zip files
- [x] Add tests
- [ ] Add config file
- [ ] Add `--via` option
- [ ] Add geolocation support
- [ ] Add fuzzy search on station names
- [ ] Pretty print route namesInstallation
------------First you need to install Rust:
$ curl https://sh.rustup.rs -sSf | sh
Then you can install the latest stable version with cargo:
$ cargo install timetable
Or the development version by fetching the git repository:
$ git clone git://github.com/vinc/timetable.git
$ cd timetable
$ cargo installUsage
-----Download and extract a gtfs zip file:
$ timetable \
--path ~/tmp/gtfs/transilien-sncf \
--url http://files.transilien.com/horaires/gtfs/export-TN-GTFS-LAST.zipSearch a station:
$ timetable \
--path ~/tmp/gtfs/transilien-sncf \
--from "font"
Stations
FERRIERES FONTENAY
FONTAINE LE PORT
FONTAINE MICHALON
FONTAINEBLEAU AVON
FONTENAY AUX ROSES
FONTENAY LE FLEURY
FONTENAY SOUS BOIS
PORCHEFONTAINE
VAL DE FONTENAYPrint timetable:
$ timetable \
--path ~/tmp/gtfs/transilien-sncf \
--from "fontainebleau" \
--to "gare de lyon" \
--at "2017-12-21 08:00:00"
Departures Arrivals Routes
08:13 ......... 08:54 RER R - Montargis / Gare de Lyon
09:06 ......... 09:47 RER R - Montargis / Gare de Lyon
10:03 ......... 10:44 RER R - Montargis / Gare de Lyon
11:03 ......... 11:44 RER R - Montargis / Gare de Lyon
12:03 ......... 12:44 RER R - Montargis / Gare de LyonLicense
-------Copyright (c) 2018-2019 Vincent Ollivier. Released under MIT.