mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
- hafas.station() -> hafas.stop() 🐛
- put stop IDs into variables
- .then/.catch -> async/await
- consistent order of methods
- minor reformatting for readability
|
||
---|---|---|
.. | ||
base.json | ||
example.js | ||
index.js | ||
readme.md | ||
thawte-rsa-ca-2018.pem |
KVB profile for hafas-client
Kölner Verkehrs-Betriebe (KVB) is the local transport provider of Cologne. This profile adds KVB support to hafas-client
.
Usage
import {createClient} from 'hafas-client'
import {profile as kvbProfile} from 'hafas-client/p/kvb/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with KVB profile
const client = createClient(kvbProfile, userAgent)
Check out the code examples.