mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
mobiliteit.lu: fix endpoint, upgrade to version 1.25
This commit is contained in:
parent
6815c9eb3c
commit
850ec9484a
1 changed files with 12 additions and 8 deletions
|
@ -4,14 +4,13 @@ const products = require('./products')
|
||||||
|
|
||||||
const transformReqBody = (ctx, body) => {
|
const transformReqBody = (ctx, body) => {
|
||||||
body.client = {
|
body.client = {
|
||||||
type: 'IPH',
|
type: 'WEB',
|
||||||
id: 'HAFAS',
|
id: 'MMILUX',
|
||||||
v: '4000200',
|
name: 'webapp',
|
||||||
name: 'mobiliteit.luPROD',
|
l: 'vs_webapp',
|
||||||
os: 'iPhone OS 9.3.5',
|
|
||||||
}
|
}
|
||||||
body.ver = '1.15'
|
body.ver = '1.25'
|
||||||
body.auth = {aid: 'Aqf9kNqJLjxFx6vv'}
|
body.auth = {type: 'AID', aid: 'SkC81GuwuzL4e0'}
|
||||||
body.lang = 'de'
|
body.lang = 'de'
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
@ -20,7 +19,7 @@ const transformReqBody = (ctx, body) => {
|
||||||
const mobiliteitLuProfile = {
|
const mobiliteitLuProfile = {
|
||||||
locale: 'de-LU',
|
locale: 'de-LU',
|
||||||
timezone: 'Europe/Luxembourg',
|
timezone: 'Europe/Luxembourg',
|
||||||
endpoint: 'https://travelplanner.mobiliteit.lu/hafas/mgate.exe',
|
endpoint: 'https://cdt.hafas.de/bin/mgate.exe',
|
||||||
transformReqBody,
|
transformReqBody,
|
||||||
|
|
||||||
products: products,
|
products: products,
|
||||||
|
@ -28,6 +27,11 @@ const mobiliteitLuProfile = {
|
||||||
trip: true,
|
trip: true,
|
||||||
radar: true,
|
radar: true,
|
||||||
reachableFrom: true,
|
reachableFrom: true,
|
||||||
|
|
||||||
|
// Version 1.25 doesn't seem to support getPasslist & stbFltrEquiv
|
||||||
|
// for departures()/arrivals().
|
||||||
|
departuresGetPasslist: false,
|
||||||
|
departuresStbFltrEquiv: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = mobiliteitLuProfile;
|
module.exports = mobiliteitLuProfile;
|
||||||
|
|
Loading…
Add table
Reference in a new issue