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

18 lines
580 B
Markdown
Raw Normal View History

2021-07-26 17:11:02 +02:00
# BLS profile for `hafas-client`
[*BLS AG*](https://en.wikipedia.org/wiki/BLS_AG) is the local transport provider of the [Canton of Bern](https://en.wikipedia.org/wiki/Canton_of_Bern). This profile adds *BLS* support to `hafas-client`.
## Usage
```js
2022-05-07 16:17:37 +02:00
import {createClient} from 'hafas-client'
import {profile as blsProfile} from 'hafas-client/p/bls/index.js'
2021-07-26 17:11:02 +02:00
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
2021-07-26 17:11:02 +02:00
// create a client with BLS profile
const client = createClient(blsProfile, userAgent)
2021-07-26 17:11:02 +02:00
```
Check out the [code examples](example.js).