minor fixes

This commit is contained in:
Jannis R 2020-11-15 13:43:26 +01:00
parent 6d4f29a3f9
commit 48ef7b5a5d
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
4 changed files with 7 additions and 4 deletions

View file

@ -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: {

View file

@ -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
}

View file

@ -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

View file

@ -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",