db-vendo-client/p/vvv/readme.md

18 lines
692 B
Markdown
Raw Permalink Normal View History

2021-08-05 16:46:06 +02:00
# VVV profile for `hafas-client`
[*Verkehrsverbund Vorarlberg (VVV)*](https://de.wikipedia.org/wiki/Verkehrsverbund_Vorarlberg) is the local transport provider of [Vorarlberg](https://en.wikipedia.org/wiki/Vorarlberg) that runs its apps under the [*VMOBIL*](https://www.vmobil.at) brand. This profile adds *VVV*/*VMOBIL* support to `hafas-client`.
## Usage
```js
2022-05-07 16:17:37 +02:00
import {createClient} from 'hafas-client'
import {profile as vvvProfile} from 'hafas-client/p/vvv/index.js'
2021-08-05 16:46:06 +02:00
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
2021-08-05 16:46:06 +02:00
// create a client with VVV profile
const client = createClient(vvvProfile, userAgent)
2021-08-05 16:46:06 +02:00
```
Check out the [code examples](example.js).