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

16 lines
546 B
Markdown
Raw Normal View History

2021-07-26 17:30:11 +02:00
# TPG profile for `hafas-client`
[*Transports publics genevois (TPG)*](https://en.wikipedia.org/wiki/Geneva_Public_Transport) is the local transport provider of the [Canton of Geneva](https://en.wikipedia.org/wiki/Canton_of_Geneva). This profile adds *TPG* support to `hafas-client`.
## Usage
```js
2022-05-07 16:17:37 +02:00
import {createClient} from 'hafas-client'
import {tpgProfile} from 'hafas-client/p/tpg/index.js'
2021-07-26 17:30:11 +02:00
// create a client with TPG profile
const client = createClient(tpgProfile, 'my-awesome-program')
```
Check out the [code examples](example.js).