mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19: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 |
VOR profile for hafas-client
Verkehrsverbund Ost-Region (VOR) is the local transport provider of Vienna, Lower Austria and Burgenland; It runs its apps under the AnachB brand. This profile adds VOR/AnachB support to hafas-client
.
Usage
import {createClient} from 'hafas-client'
import {profile as vorProfile} from 'hafas-client/p/vor/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with VOR profile
const client = createClient(vorProfile, userAgent)
Check out the code examples.