CLI Timetable queries to the opendata Transport API
brew install mhutter/tap/sbb
go install github.com/mhutter/sbb/...
You can always download the latest binaries from the releases page.
$ sbb from Zurich to Brig
---------------------------------------------------------
Zürich HB dep: 06:02 dur: 02:09
Brig arr: 08:11
---------------------------------------------------------
Zürich HB dep: 06:32 dur: 02:08
Brig arr: 08:40
---------------------------------------------------------
Zürich HB dep: 07:02 dur: 02:09
Brig arr: 09:11
---------------------------------------------------------
Zürich HB dep: 08:02 dur: 02:09
Brig arr: 10:11
---------------------------------------------------------
Option | Description |
---|---|
from | Specifies the departure location of the connection |
to | Specifies the arrival location of the connection |
date | Date of the connection |
time | Time of the connection |