Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 884 Bytes

readme.md

File metadata and controls

23 lines (15 loc) · 884 Bytes

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

import {createClient} from 'hafas-client'
import {profile as bvgProfile} from 'hafas-client/p/bvg/index.js'

const userAgent = 'link-to-your-project-or-email' // adapt this to your project!

// create a client with BVG profile
const client = createClient(bvgProfile, userAgent)

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