mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-10-28 06:36:31 +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 | ||
Saarfahrplan/VGS profile for hafas-client
Saarfahrplan is the public transport information system in Saarland. This profile adds Saarfahrplan-specific customizations to hafas-client.
Usage
import {createClient} from 'hafas-client'
import {profile as saarfahrplanProfile} from 'hafas-client/p/saarfahrplan/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with Saarfahrplan profile
const client = createClient(saarfahrplanProfile, userAgent)
Customisations
- parses Saarfahrplan-specific products (such as Saarbahn)