db-vendo-client/p/bvg
2019-02-28 16:45:18 +01:00
..
example.js departures/arrivals, locations, nearby, stop: opt.stationLines -> linesOfStops 💥 📝 2019-02-28 16:45:18 +01:00
index.js profiles: enable reachableFrom 2018-09-03 16:43:01 +02:00
products.js BVG profile 2018-07-29 20:17:50 +02:00
readme.md docs for BVG profile 📝 2018-07-29 20:17:50 +02:00

BVG profile for hafas-client

Verkehrsverbund Berlin-Brandenburg (BVG) is the major local transport provider in Berlin. This profile adds BVG-specific customizations to hafas-client.

Usage

const createClient = require('hafas-client')
const bvgProfile = require('hafas-client/p/bvg')

// create a client with BVG profile
const client = createClient(bvgProfile, 'my-awesome-program')

Customisations

  • parses BVG-specific products (such as X-Bus)
  • strips parts from station names that are unnecessary in the Berlin context
  • parses line names to give more information (e.g. "Is it an express bus?")
  • renames Ringbahn line names to contain and