mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
32 lines
641 B
JavaScript
32 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
|