mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
33 lines
547 B
JavaScript
33 lines
547 B
JavaScript
'use strict'
|
|
|
|
const products = require('./products')
|
|
|
|
const transformReqBody = (body) => {
|
|
body.client = {
|
|
type: 'IPH',
|
|
id: 'HAFAS',
|
|
v: '4000000',
|
|
name: 'cflPROD-STORE',
|
|
os: 'iPhone OS 9.3.5'
|
|
}
|
|
body.ver = '1.16'
|
|
body.auth = {aid: 'ALT2vl7LAFDFu2dz'}
|
|
body.lang = 'de'
|
|
|
|
return body
|
|
}
|
|
|
|
const cflProfile = {
|
|
locale: 'de-LU',
|
|
timezone: 'Europe/Luxembourg',
|
|
endpoint: 'https://horaires.cfl.lu/bin/mgate.exe',
|
|
transformReqBody,
|
|
|
|
products: products,
|
|
|
|
trip: true,
|
|
radar: true
|
|
// todo: reachableFrom?
|
|
}
|
|
|
|
module.exports = cflProfile;
|