Thanks to visit codestin.com
Credit goes to github.com

Skip to content

derhuerst/vbb-lines

Repository files navigation

vbb-lines 🚏

A collection of all lines (and their stations) of the Berlin Brandenburg public transport service (VBB), computed from open GTFS data.

npm version dependency status dev dependency status ISC-licensed

Installing

npm install vbb-lines

Usage

const lines = require('vbb-lines')

lines(true, 9042101).then(console.log) // query a single line
lines({type: 'bus'}).on('data', console.log) // filter lines
lines('all').on('data', console.log)

API

lines([promised], [pattern])

If promised is true, a Promise will be returned, resolving with an array of results.

Otherwise, a stream in object mode will be returned, emitting one line at a time.

pattern can be one of the following:

  • a line ID, like 8000147
  • 'all'
  • an object like {type: 'bus', agencyId: 'ANG'}, with each property being mandatory

Contributing

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

About

VBB lines and their stations.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 3

  •  
  •  
  •