db-vendo-client/p/cmta/index.js
2020-11-28 11:25:43 +01:00

34 lines
635 B
JavaScript

'use strict'
const products = require('./products')
const transformReqBody = (ctx, body) => {
body.client = {
type: 'IPH',
id: 'CMTA',
v: '2',
name: 'CapMetro'
}
body.ver = '1.13'
body.auth = {type: 'AID', aid: 'ioslaskdcndrjcmlsd'}
return body
}
const cmtaProfile = {
locale: 'en-US',
timezone: 'America/Chicago',
endpoint: 'https://capmetro.hafas.cloud/bin/mgate.exe',
transformReqBody,
products,
trip: true,
radar: true,
refreshJourney: true,
reachableFrom: true,
remarks: false, // seems like ver >= 1.20 is required
lines: false, // seems like ver >= 1.16 is required
}
module.exports = cmtaProfile