mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
15 lines
521 B
Markdown
15 lines
521 B
Markdown
# KVB profile for `hafas-client`
|
|
|
|
[*Kölner Verkehrs-Betriebe (KVB)*](https://de.wikipedia.org/wiki/Kölner_Verkehrs-Betriebe) is the local transport provider of [Cologne](https://en.wikipedia.org/wiki/Cologne). This profile adds *KVB* support to `hafas-client`.
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const createClient = require('hafas-client')
|
|
const kvbProfile = require('hafas-client/p/kvb')
|
|
|
|
// create a client with KVB profile
|
|
const client = createClient(kvbProfile, 'my-awesome-program')
|
|
```
|
|
|
|
Check out the [code examples](example.js).
|