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:
Jannis R 2021-10-26 14:17:34 +02:00
parent a7cb71c870
commit 39d3807c82
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
5 changed files with 6 additions and 25 deletions

View file

@ -39,7 +39,7 @@ module.exports = [
mode: 'gondola', mode: 'gondola',
bitmasks: [512], bitmasks: [512],
name: 'Fun', // taken from the horaires.cfl.lu website name: 'Fun', // taken from the horaires.cfl.lu website
short: 'Fun', short: 'Fun', // abbreviation for funicular?
default: true default: true
} }
] ]

View file

@ -3,7 +3,7 @@
const baseProfile = require('./base.json') const baseProfile = require('./base.json')
const products = require('./products') const products = require('./products')
const saarfahrplanProfile = { const nvvProfile = {
...baseProfile, ...baseProfile,
locale: 'de-DE', locale: 'de-DE',
timezone: 'Europe/Berlin', timezone: 'Europe/Berlin',
@ -18,4 +18,4 @@ const saarfahrplanProfile = {
reachableFrom: true, reachableFrom: true,
} }
module.exports = saarfahrplanProfile module.exports = nvvProfile

View file

@ -3,17 +3,6 @@
const baseProfile = require('./base.json') const baseProfile = require('./base.json')
const products = require('./products') const products = require('./products')
const formatRefreshJourneyReq = ({opt}, refreshToken) => {
return {
meth: 'Reconstruction',
req: {
outReconL: [{ctx: refreshToken}],
},
}
}
module.exports = formatRefreshJourneyReq
const hvvProfile = { const hvvProfile = {
...baseProfile, ...baseProfile,
locale: 'de-DE', locale: 'de-DE',
@ -25,8 +14,6 @@ const hvvProfile = {
radar: true, radar: true,
reachableFrom: true, reachableFrom: true,
refreshJourney: true, refreshJourney: true,
formatRefreshJourneyReq,
refreshJourneyUseOutReconL: true, refreshJourneyUseOutReconL: true,
departuresGetPasslist: false, // `departures()`: support for `getPasslist`? departuresGetPasslist: false, // `departures()`: support for `getPasslist`?
departuresStbFltrEquiv: false, // `departures()`: support for `stbFltrEquiv`? departuresStbFltrEquiv: false, // `departures()`: support for `stbFltrEquiv`?

View file

@ -19,7 +19,8 @@
"n0emis <n0emis@noemis.me>", "n0emis <n0emis@noemis.me>",
"em0lar <hello@em0lar.de>", "em0lar <hello@em0lar.de>",
"Adrian Böhme <hannsadrian@gmail.com> (https://github.com/Adwirawien)", "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", "homepage": "https://github.com/public-transport/hafas-client/tree/5.20.1",
"repository": "public-transport/hafas-client", "repository": "public-transport/hafas-client",

View file

@ -8,13 +8,6 @@
[![support Jannis via GitHub Sponsors](https://img.shields.io/badge/support%20Jannis-donate-fa7664.svg)](https://github.com/sponsors/derhuerst) [![support Jannis via GitHub Sponsors](https://img.shields.io/badge/support%20Jannis-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with Jannis on Twitter](https://img.shields.io/badge/chat%20with%20Jannis-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst) [![chat with Jannis on Twitter](https://img.shields.io/badge/chat%20with%20Jannis-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)
- [Background](#background)
- [Supported networks/endpoints](#supported-networksendpoints)
- [Installing](#installing)
- [Usage](#usage)
- [Related Projects](#related)
- [Contributing](#contributing)
## Background ## Background
@ -221,7 +214,7 @@ While `hafas-client` itself should work in the browser via a bundler like [Webpa
[API documentation](docs/readme.md) [API documentation](docs/readme.md)
## Related ## Related Projects
- [`*.transport.rest`](https://transport.rest/)  Public APIs wrapping some HAFAS endpoints. - [`*.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). - [`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).