vbb-static
vbb-static is a collection of datasets covering the Berlin Brandenburg public transport service (VBB), computed from open GTFS data.
Installing
Warning: This module contains .ndjson
files with a total size of roughly 130 megabytes of data.
npm install vbb-static
Usage
const static =
This will give you an object with one method for each dataset:
agencies( [promised,] filter )
lines( [promised,] filter )
stations( [promised,] filter )
transfers( [promised,] filter )
trips( [promised,] filter )
schedules( [promised,] filter )
To filter by id
, just pass the value.
static
To filter by multiple fields, pass them in an object.
static
To get all elements, pass 'all'
as the filter
.
Examples
static
returns a promise that will resolve with
id: 'VIB' name: 'Verkehrsbetrieb Potsdam GmbH' url: 'http://www.vip-potsdam.de'
static;
returns an object stream that will emit data
once with
id: 9042101 name: 'U Spichernstr. (Berlin)' latitude: 52496582 longitude: 13330613 weight: 13585
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.