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

18 lines
704 B
Markdown
Raw Permalink Normal View History

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