db-vendo-client/p/tpg/readme.md
2023-03-14 20:58:17 +01:00

17 lines
628 B
Markdown

# 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
import {createClient} from 'hafas-client'
import {profile as tpgProfile} from 'hafas-client/p/tpg/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with TPG profile
const client = createClient(tpgProfile, userAgent)
```
Check out the [code examples](example.js).