2018-09-07 19:56:05 +02:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const products = require('./products')
|
|
|
|
|
2019-10-20 00:19:52 +02:00
|
|
|
const transformReqBody = (ctx, body) => {
|
2018-12-06 11:31:28 +01:00
|
|
|
body.client = {type: 'IPH', id: 'DB-REGIO-MVV', name: 'MuenchenNavigator', v: '5010100'}
|
2018-09-07 19:56:05 +02:00
|
|
|
body.ext = 'DB.R15.12.a'
|
2018-12-06 11:31:28 +01:00
|
|
|
body.ver = '1.18'
|
2018-09-07 19:56:05 +02:00
|
|
|
body.auth = {type: 'AID', aid: 'd491MVVhz9ZZts23'}
|
|
|
|
|
|
|
|
return body
|
|
|
|
}
|
|
|
|
|
|
|
|
const sBahnMunichProfile = {
|
|
|
|
locale: 'de-DE',
|
|
|
|
timezone: 'Europe/Berlin',
|
|
|
|
endpoint: 'https://s-bahn-muenchen.hafas.de/bin/540/mgate.exe',
|
|
|
|
|
|
|
|
salt: Buffer.from('ggnvMVV8RTt67gh1', 'utf8'),
|
|
|
|
addMicMac: true,
|
|
|
|
transformReqBody,
|
|
|
|
|
|
|
|
products,
|
|
|
|
|
|
|
|
trip: true,
|
|
|
|
radar: true,
|
|
|
|
refreshJourney: true,
|
|
|
|
reachableFrom: true
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = sBahnMunichProfile
|