Home

Awesome

vbb-stations-cli

Find and filter VBB stations from the command line. Computed from open GTFS data.

asciicast

npm version build status ISC-licensed gitter channel support me on Patreon

Installing

npm install -g vbb-stations-cli

Usage

Usage:
    vbb-stations [options] [filters]

Options:
    --id        <value>             Filter by id.
    --name      <value>             Filter by name.
    --latitude  <value>             Filter by latitude.
    --longitude <value>             Filter by longitude.
    --weight    <value>             Filter by weight.
    --format    <value>             One of csv,ndjson,pretty,json. Default: pretty
    --columns   <value>,<value>,…   Default is id,coords,weight,name,lines.

Filters:
    Each filter must be an `Array.prototype.filter`-compatible funtion.

Examples:
    vbb-stations
    vbb-stations --name "berliner strasse"
    vbb-stations --id 9003104 --columns id,name,lines
    vbb-stations "(s) => s.latitude > 52" "(s) => s.latitude > 12"

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.