mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
32 lines
726 B
JavaScript
32 lines
726 B
JavaScript
'use strict'
|
|
|
|
const {parseHook} = require('../../lib/profile-hooks')
|
|
|
|
const _parseMovement = require('../../parse/movement')
|
|
const baseProfile = require('./base.json')
|
|
const products = require('./products')
|
|
|
|
const fixMovement = ({parsed}, m) => {
|
|
// filter out empty stopovers
|
|
parsed.nextStopovers = parsed.nextStopovers.filter(st => !!st.stop)
|
|
return parsed
|
|
}
|
|
|
|
const saarfahrplanProfile = {
|
|
...baseProfile,
|
|
locale: 'de-DE',
|
|
timezone: 'Europe/Berlin',
|
|
salt: Buffer.from('HJtlubisvxiJxss', 'utf8'),
|
|
addMicMac: true,
|
|
|
|
products: products,
|
|
|
|
parseMovement: parseHook(_parseMovement, fixMovement),
|
|
|
|
refreshJourneyUseOutReconL: true,
|
|
trip: true,
|
|
radar: true,
|
|
reachableFrom: true
|
|
}
|
|
|
|
module.exports = saarfahrplanProfile
|