mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
30 lines
521 B
JavaScript
30 lines
521 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const products = require('./products')
|
||
|
|
||
|
const transformReqBody = (ctx, body) => {
|
||
|
body.client = {type: 'WEB', id: 'RMV', name: 'webapp'}
|
||
|
body.ext = 'RMV.1'
|
||
|
body.ver = '1.18'
|
||
|
body.auth = {type: 'AID', aid: 'x0k4ZR33ICN9CWmj'}
|
||
|
|
||
|
return body
|
||
|
}
|
||
|
|
||
|
const hvvProfile = {
|
||
|
locale: 'de-DE',
|
||
|
timezone: 'Europe/Berlin',
|
||
|
endpoint: 'https://www.rmv.de/auskunft/bin/jp/mgate.exe',
|
||
|
|
||
|
transformReqBody,
|
||
|
|
||
|
products,
|
||
|
|
||
|
trip: true,
|
||
|
radar: true,
|
||
|
refreshJourney: true,
|
||
|
reachableFrom: true
|
||
|
}
|
||
|
|
||
|
module.exports = hvvProfile
|