mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
33 lines
633 B
JavaScript
33 lines
633 B
JavaScript
'use strict'
|
|
|
|
const products = require('./products')
|
|
|
|
const transformReqBody = (ctx, body) => {
|
|
body.client = {type: 'WEB', id: 'RSAG', name: 'webapp'}
|
|
body.ext = 'VBN.2'
|
|
body.ver = '1.24'
|
|
body.auth = {type: 'AID', aid: 'tF5JTs25rzUhGrrl'}
|
|
|
|
return body
|
|
}
|
|
|
|
const rsagProfile = {
|
|
locale: 'de-DE',
|
|
timezone: 'Europe/Berlin',
|
|
endpoint: 'https://fahrplan.rsag-online.de/bin/mgate.exe',
|
|
|
|
transformReqBody,
|
|
|
|
products,
|
|
|
|
trip: true,
|
|
radar: true,
|
|
reachableFrom: true,
|
|
|
|
// todo: these fail ver >=1.21, see #164
|
|
refreshJourney: false,
|
|
departuresGetPasslist: false,
|
|
departuresStbFltrEquiv: false,
|
|
}
|
|
|
|
module.exports = rsagProfile
|