mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
minor fixes
This commit is contained in:
parent
6d4f29a3f9
commit
48ef7b5a5d
4 changed files with 7 additions and 4 deletions
|
@ -70,7 +70,7 @@ The response may look like this:
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
direction: 'S Flughafen Berlin-Schönefeld',
|
direction: 'S Flughafen Berlin-Schönefeld',
|
||||||
trip: 31463,
|
trip: 31463, // todo: outdated, should be tripId!
|
||||||
|
|
||||||
nextStopovers: [ {
|
nextStopovers: [ {
|
||||||
stop: {
|
stop: {
|
||||||
|
|
1
index.js
1
index.js
|
@ -374,6 +374,7 @@ const createClient = (profile, userAgent, opt = {}) => {
|
||||||
meth: 'JourneyMatch',
|
meth: 'JourneyMatch',
|
||||||
req: {
|
req: {
|
||||||
input: lineNameOrFahrtNr,
|
input: lineNameOrFahrtNr,
|
||||||
|
// todo: date seems to be ignored
|
||||||
date: profile.formatDate(profile, opt.when),
|
date: profile.formatDate(profile, opt.when),
|
||||||
// todo: there are probably more options
|
// todo: there are probably more options
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ const transformReqBody = (ctx, body) => {
|
||||||
return body
|
return body
|
||||||
}
|
}
|
||||||
|
|
||||||
const hvvProfile = {
|
const rsagProfile = {
|
||||||
locale: 'de-DE',
|
locale: 'de-DE',
|
||||||
timezone: 'Europe/Berlin',
|
timezone: 'Europe/Berlin',
|
||||||
endpoint: 'https://fahrplan.rsag-online.de/bin/mgate.exe',
|
endpoint: 'https://fahrplan.rsag-online.de/bin/mgate.exe',
|
||||||
|
@ -30,4 +30,4 @@ const hvvProfile = {
|
||||||
departuresStbFltrEquiv: false,
|
departuresStbFltrEquiv: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = hvvProfile
|
module.exports = rsagProfile
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
"homepage": "https://github.com/public-transport/hafas-client/tree/5.10.0",
|
"homepage": "https://github.com/public-transport/hafas-client/tree/5.10.0",
|
||||||
"repository": "public-transport/hafas-client",
|
"repository": "public-transport/hafas-client",
|
||||||
"bugs": "https://github.com/public-transport/hafas-client/issues",
|
"bugs": "https://github.com/public-transport/hafas-client/issues",
|
||||||
"funding": "https://github.com/sponsors/derhuerst",
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/derhuerst"
|
||||||
|
},
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hafas",
|
"hafas",
|
||||||
|
|
Loading…
Add table
Reference in a new issue