Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/derhuerst/vbb-stations-cli

Find and filter VBB stations from the command line.
https://github.com/derhuerst/vbb-stations-cli

berlin bvg cli transit transport vbb

Last synced: about 2 months ago
JSON representation

Find and filter VBB stations from the command line.

Awesome Lists containing this project

README

        

# *vbb-stations-cli*

**Find and filter VBB stations from the command line.** Computed from [open](http://daten.berlin.de/datensaetze/vbb-fahrplandaten-januar-2017-bis-dezember-2017) [GTFS](https://developers.google.com/transit/gtfs/) [data](https://vbb-gtfs.jannisr.de/).

[![asciicast](https://asciinema.org/a/82500.png)](https://asciinema.org/a/82500)

[![npm version](https://img.shields.io/npm/v/vbb-stations-cli.svg)](https://www.npmjs.com/package/vbb-stations-cli)
[![build status](https://img.shields.io/travis/derhuerst/vbb-stations-cli.svg)](https://travis-ci.org/derhuerst/vbb-stations-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-stations-cli.svg)
[![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)

## Installing

```shell
npm install -g vbb-stations-cli
```

## Usage

```
Usage:
vbb-stations [options] [filters]

Options:
--id Filter by id.
--name Filter by name.
--latitude Filter by latitude.
--longitude Filter by longitude.
--weight Filter by weight.
--format One of csv,ndjson,pretty,json. Default: pretty
--columns ,,… 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](https://github.com/derhuerst/vbb-stations-cli/issues).