From 39d3807c827d4d3a6bee9017db4aa70d3bea0973 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 26 Oct 2021 14:17:34 +0200 Subject: [PATCH] =?UTF-8?q?minor=20tweaks=20=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - package.json: add contributor "Kristjan Esperanto" - readme: remove table of contents - VRN: remove superfluous formatRefreshJourneyReq() - NVV: fix profile name - CFL: document "Fun" product --- p/cfl/products.js | 2 +- p/nvv/index.js | 4 ++-- p/vrn/index.js | 13 ------------- package.json | 3 ++- readme.md | 9 +-------- 5 files changed, 6 insertions(+), 25 deletions(-) diff --git a/p/cfl/products.js b/p/cfl/products.js index 027d1bcc..20e2d315 100644 --- a/p/cfl/products.js +++ b/p/cfl/products.js @@ -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 } ] diff --git a/p/nvv/index.js b/p/nvv/index.js index f099ab0c..46c71a36 100644 --- a/p/nvv/index.js +++ b/p/nvv/index.js @@ -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 diff --git a/p/vrn/index.js b/p/vrn/index.js index 7fc1cacc..42e64906 100644 --- a/p/vrn/index.js +++ b/p/vrn/index.js @@ -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`? diff --git a/package.json b/package.json index dfa49d9e..04bcbf4b 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "n0emis ", "em0lar ", "Adrian Böhme (https://github.com/Adwirawien)", - "Yureka " + "Yureka ", + "Kristjan Esperanto (https://github.com/KristjanESPERANTO)" ], "homepage": "https://github.com/public-transport/hafas-client/tree/5.20.1", "repository": "public-transport/hafas-client", diff --git a/readme.md b/readme.md index 83baedbd..a1dfc144 100644 --- a/readme.md +++ b/readme.md @@ -8,13 +8,6 @@ [![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) -- [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).