mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
30 lines
577 B
JavaScript
30 lines
577 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const products = require('./products')
|
||
|
|
||
|
const transformReqBody = (ctx, body) => {
|
||
|
body.client = {type: 'WEB', id: 'VAO', name: 'webapp'}
|
||
|
body.ext = 'VAO.11'
|
||
|
body.ver = '1.20'
|
||
|
body.auth = {type: 'AID', aid: 'wf7mcf9bv3nv8g5f'}
|
||
|
return body
|
||
|
}
|
||
|
|
||
|
const svvProfile = {
|
||
|
locale: 'at-DE',
|
||
|
timezone: 'Europe/Vienna',
|
||
|
endpoint: 'https://fahrplan.salzburg-verkehr.at/bin/mgate.exe',
|
||
|
|
||
|
transformReqBody,
|
||
|
|
||
|
products,
|
||
|
|
||
|
trip: true,
|
||
|
refreshJourney: true,
|
||
|
reachableFrom: true,
|
||
|
departuresGetPasslist: false,
|
||
|
departuresStbFltrEquiv: false,
|
||
|
}
|
||
|
|
||
|
module.exports = svvProfile
|