A command line client for Berlin & Brandenburg public transport (VBB). Built on top of vbb-hafas
.
npm install -g vbb-cli
Or just run it using npx
.
vbb-dep [station] [options]
Arguments:
station Station number (like 900000023201) or search string (like "Zoo").
Options:
--location -l Use current location. macOS only.
--duration -d Show departures for the next n minutes. Default: 15
--when -w A date & time string like "tomorrow 2 pm". Default: now
--products -p Allowed transportation types.
Default: suburban,subway,tram,bus,ferry,express,regional
--show-ids Show station & journey leg IDs. Default: false
vbb-journey [origin] [destination] [options]
Arguments:
origin Station number (e.g. 900000023201) or query (e.g. "Zoo").
destination Station number (e.g. 900000023201) or query (e.g. "Zoo").
Options:
--results -r The number of journeys to show. Default: 4
--products -p Allowed transportation types. Default: "all"
"all" = "suburban,subway,tram,bus,ferry,express,regional"
--when -w A date & time string like "tomorrow 2 pm". Default: now
--show-ids Show station & journey leg IDs. Default: false
If you have a question or have difficulties using vbb-cli
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.