Skip to content
An API client for Berlin & Brandenburg public transport.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.editorconfig
.gitignore
.travis.yml
example.js
index.js
license.md
package.json
readme.md
test.js

readme.md

vbb-client

A client for the Berlin & Brandenburg public transport API deployed at 2.vbb.transport.rest. Works both in browsers (using a bundler) and in Node.

architecture

npm version ISC-licensed gitter channel support me on Patreon

Installing

npm install vbb-client

Usage

const vbb = require('vbb-client')()

vbb.journeys('900000003201', '900000024101', {results: 1})
.then(console.log)
.catch(console.error)

With Custom Endpoint

const vbb = require('vbb-client')({
    endpoint: "https://my.local.api",
})

API

vbb-client is a client for the vbb-rest API deployed at 2.vbb.transport.rest. Refer to its API docs for all supported parameters.

It wraps the following routes:

Contributing

If you have a question or have difficulties using vbb-client, 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.

You can’t perform that action at this time.