vbb-cli

3.0.0 • Public • Published

vbb-cli

A command line client for Berlin & Brandenburg public transport (VBB). Built on top of vbb-hafas.

asciicast

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install -g vbb-cli

Or just run it using npx.

Usage

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

Contributing

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.

Dependents (0)

Package Sidebar

Install

npm i vbb-cli

Weekly Downloads

1

Version

3.0.0

License

ISC

Unpacked Size

8.79 kB

Total Files

9

Last publish

Collaborators

  • derhuerst