db-vendo-client/p/sbahn-muenchen/index.js
2018-09-18 19:56:03 +02:00

31 lines
641 B
JavaScript

'use strict'
const products = require('./products')
const transformReqBody = (body) => {
body.client = {type: 'IPA', id: 'DB-REGIO-MVV', name: 'RegioNavigator', v: '1000030'}
body.ext = 'DB.R15.12.a'
body.ver = '1.15'
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