From 48ef7b5a5d0c9aeff9dc4ae8a156ddf058893b02 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 15 Nov 2020 13:43:26 +0100 Subject: [PATCH] minor fixes --- docs/radar.md | 2 +- index.js | 1 + p/rsag/index.js | 4 ++-- package.json | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/radar.md b/docs/radar.md index 8eeec9ff..361e75e8 100644 --- a/docs/radar.md +++ b/docs/radar.md @@ -70,7 +70,7 @@ The response may look like this: } }, direction: 'S Flughafen Berlin-Schönefeld', - trip: 31463, + trip: 31463, // todo: outdated, should be tripId! nextStopovers: [ { stop: { diff --git a/index.js b/index.js index bb82fb79..495aa1b2 100644 --- a/index.js +++ b/index.js @@ -374,6 +374,7 @@ const createClient = (profile, userAgent, opt = {}) => { meth: 'JourneyMatch', req: { input: lineNameOrFahrtNr, + // todo: date seems to be ignored date: profile.formatDate(profile, opt.when), // todo: there are probably more options } diff --git a/p/rsag/index.js b/p/rsag/index.js index 2a9d7459..2799e50c 100644 --- a/p/rsag/index.js +++ b/p/rsag/index.js @@ -11,7 +11,7 @@ const transformReqBody = (ctx, body) => { return body } -const hvvProfile = { +const rsagProfile = { locale: 'de-DE', timezone: 'Europe/Berlin', endpoint: 'https://fahrplan.rsag-online.de/bin/mgate.exe', @@ -30,4 +30,4 @@ const hvvProfile = { departuresStbFltrEquiv: false, } -module.exports = hvvProfile +module.exports = rsagProfile diff --git a/package.json b/package.json index 16878fe9..788f16d0 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,9 @@ "homepage": "https://github.com/public-transport/hafas-client/tree/5.10.0", "repository": "public-transport/hafas-client", "bugs": "https://github.com/public-transport/hafas-client/issues", - "funding": "https://github.com/sponsors/derhuerst", + "funding": { + "url": "https://github.com/sponsors/derhuerst" + }, "license": "ISC", "keywords": [ "hafas",