This package has been deprecated

Author message:

Obsolete. Use the hafas-rest-api-client package instead.

vbb-client

4.0.0 • Public • Published

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.

Package Sidebar

Install

npm i vbb-client

Weekly Downloads

3

Version

4.0.0

License

ISC

Unpacked Size

12.6 kB

Total Files

5

Last publish

Collaborators

  • derhuerst