mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
minor tweaks 📝
- package.json: add contributor "Kristjan Esperanto" - readme: remove table of contents - VRN: remove superfluous formatRefreshJourneyReq() - NVV: fix profile name - CFL: document "Fun" product
This commit is contained in:
parent
a7cb71c870
commit
39d3807c82
5 changed files with 6 additions and 25 deletions
|
@ -39,7 +39,7 @@ module.exports = [
|
|||
mode: 'gondola',
|
||||
bitmasks: [512],
|
||||
name: 'Fun', // taken from the horaires.cfl.lu website
|
||||
short: 'Fun',
|
||||
short: 'Fun', // abbreviation for funicular?
|
||||
default: true
|
||||
}
|
||||
]
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const baseProfile = require('./base.json')
|
||||
const products = require('./products')
|
||||
|
||||
const saarfahrplanProfile = {
|
||||
const nvvProfile = {
|
||||
...baseProfile,
|
||||
locale: 'de-DE',
|
||||
timezone: 'Europe/Berlin',
|
||||
|
@ -18,4 +18,4 @@ const saarfahrplanProfile = {
|
|||
reachableFrom: true,
|
||||
}
|
||||
|
||||
module.exports = saarfahrplanProfile
|
||||
module.exports = nvvProfile
|
||||
|
|
|
@ -3,17 +3,6 @@
|
|||
const baseProfile = require('./base.json')
|
||||
const products = require('./products')
|
||||
|
||||
const formatRefreshJourneyReq = ({opt}, refreshToken) => {
|
||||
return {
|
||||
meth: 'Reconstruction',
|
||||
req: {
|
||||
outReconL: [{ctx: refreshToken}],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = formatRefreshJourneyReq
|
||||
|
||||
const hvvProfile = {
|
||||
...baseProfile,
|
||||
locale: 'de-DE',
|
||||
|
@ -25,8 +14,6 @@ const hvvProfile = {
|
|||
radar: true,
|
||||
reachableFrom: true,
|
||||
refreshJourney: true,
|
||||
formatRefreshJourneyReq,
|
||||
|
||||
refreshJourneyUseOutReconL: true,
|
||||
departuresGetPasslist: false, // `departures()`: support for `getPasslist`?
|
||||
departuresStbFltrEquiv: false, // `departures()`: support for `stbFltrEquiv`?
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
"n0emis <n0emis@noemis.me>",
|
||||
"em0lar <hello@em0lar.de>",
|
||||
"Adrian Böhme <hannsadrian@gmail.com> (https://github.com/Adwirawien)",
|
||||
"Yureka <github@yuka.dev>"
|
||||
"Yureka <github@yuka.dev>",
|
||||
"Kristjan Esperanto (https://github.com/KristjanESPERANTO)"
|
||||
],
|
||||
"homepage": "https://github.com/public-transport/hafas-client/tree/5.20.1",
|
||||
"repository": "public-transport/hafas-client",
|
||||
|
|
|
@ -8,13 +8,6 @@
|
|||
[](https://github.com/sponsors/derhuerst)
|
||||
[](https://twitter.com/derhuerst)
|
||||
|
||||
- [Background](#background)
|
||||
- [Supported networks/endpoints](#supported-networksendpoints)
|
||||
- [Installing](#installing)
|
||||
- [Usage](#usage)
|
||||
- [Related Projects](#related)
|
||||
- [Contributing](#contributing)
|
||||
|
||||
|
||||
## Background
|
||||
|
||||
|
@ -221,7 +214,7 @@ While `hafas-client` itself should work in the browser via a bundler like [Webpa
|
|||
[API documentation](docs/readme.md)
|
||||
|
||||
|
||||
## Related
|
||||
## Related Projects
|
||||
|
||||
- [`*.transport.rest`](https://transport.rest/) – Public APIs wrapping some HAFAS endpoints.
|
||||
- [`BahnhofsAbfahrten`](https://github.com/marudor/BahnhofsAbfahrten) a.k.a. [`marudor.de`](https://marudor.de/) – A very detailed public transport website for Germany. Uses HAFAS underneath, [has an API](https://docs.marudor.de).
|
||||
|
|
Loading…
Add table
Reference in a new issue