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 | ||
products.js | ||
readme.md |
VRN profile for hafas-client
Verkehrsverbund Rhein-Neckar (VRN) is a public transport network in south-west Germany. This profile adds VRN-specific customizations to hafas-client
.
Usage
import {createClient} from 'hafas-client'
import {profile as vrnProfile} from 'hafas-client/p/vrn/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with VRN profile
const client = createClient(vrnProfile, userAgent)
Customisations
- parses VRN-specific products