hafas-client
Version:
Client for HAFAS public transport APIs.
22 lines (13 loc) • 900 B
Markdown
[*Verkehrsverbund Berlin-Brandenburg (VBB)*](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) is a group of public transport companies, running the public transport network in [Berlin](https://en.wikipedia.org/wiki/Berlin). This profile adds *VBB*-specific customizations to `hafas-client`. Consider using [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas#vbb-hafas), to always get the customized client right away.
```js
import {createClient} from 'hafas-client'
import {profile as vbbProfile} from 'hafas-client/p/vbb/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with VBB profile
const client = createClient(vbbProfile, userAgent)
```
- parses *VBB*-specific products (such as *X-Bus*)
- renames *Ringbahn* line names to contain `⟳` and `⟲`