2018-04-09 19:49:18 +02:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const products = require('./products')
|
|
|
|
|
|
|
|
const transformReqBody = (ctx, body) => {
|
|
|
|
body.client = {
|
2020-11-25 15:45:32 +01:00
|
|
|
type: 'WEB',
|
|
|
|
id: 'MMILUX',
|
|
|
|
name: 'webapp',
|
|
|
|
l: 'vs_webapp',
|
2018-04-09 19:49:18 +02:00
|
|
|
}
|
2020-11-25 15:45:32 +01:00
|
|
|
body.ver = '1.25'
|
|
|
|
body.auth = {type: 'AID', aid: 'SkC81GuwuzL4e0'}
|
2018-04-09 19:49:18 +02:00
|
|
|
body.lang = 'de'
|
|
|
|
|
|
|
|
return body
|
|
|
|
}
|
|
|
|
|
|
|
|
const mobiliteitLuProfile = {
|
|
|
|
locale: 'de-LU',
|
|
|
|
timezone: 'Europe/Luxembourg',
|
2020-11-25 15:45:32 +01:00
|
|
|
endpoint: 'https://cdt.hafas.de/bin/mgate.exe',
|
2018-04-09 19:49:18 +02:00
|
|
|
transformReqBody,
|
|
|
|
|
|
|
|
products: products,
|
|
|
|
|
|
|
|
trip: true,
|
|
|
|
radar: true,
|
|
|
|
reachableFrom: true,
|
2020-11-25 15:45:32 +01:00
|
|
|
|
|
|
|
// Version 1.25 doesn't seem to support getPasslist & stbFltrEquiv
|
|
|
|
// for departures()/arrivals().
|
|
|
|
departuresGetPasslist: false,
|
|
|
|
departuresStbFltrEquiv: false,
|
2018-04-09 19:49:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = mobiliteitLuProfile;
|