mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-10-25 14:16:31 +03: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 | ||
Irish Rail profile for hafas-client
The Iarnród Éireann (Irish Rail) is the national railway company of Ireland. This profile adds Iarnród Éireann-specific customizations to hafas-client.
Usage
import {createClient} from 'hafas-client'
import {profile as irishProfile} from 'hafas-client/p/irish-rail/index.js'
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
// create a client with Irish Rail profile
const client = createClient(irishProfile, userAgent)
Customisations
- parses Irish Rail-specific products (such as LUAS or DART)