db-vendo-client/p/kvb/index.js

67 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2022-05-07 16:17:37 +02:00
// todo: use import assertions once they're supported by Node.js & ESLint
// https://github.com/tc39/proposal-import-assertions
import {createRequire} from 'module';
const require = createRequire(import.meta.url);
2021-11-27 23:41:40 +01:00
const baseProfile = require('./base.json');
2021-11-27 23:41:40 +01:00
const products = [{
id: 'stadtbahn',
mode: 'train',
bitmasks: [2],
name: 'Stadtbahn',
short: 'Stadtbahn',
default: true,
}, {
id: 'bus',
mode: 'bus',
bitmasks: [8],
name: 'Bus',
short: 'Bus',
default: true,
}, {
id: 'taxibus',
mode: 'bus',
bitmasks: [256],
name: 'Taxibus',
short: 'Taxibus',
default: true,
}, {
id: 's-bahn',
mode: 'train',
bitmasks: [1],
name: 'S-Bahn',
short: 'S',
default: true,
}, {
id: 'regionalverkehr',
mode: 'train',
bitmasks: [16],
2021-11-27 23:41:40 +01:00
name: 'Regionalverkehr',
short: 'Regionalverkehr',
default: true,
}, {
id: 'fernverkehr',
mode: 'train',
bitmasks: [32],
name: 'Fernverkehr',
short: 'Fernverkehr',
default: true,
}];
2021-11-27 23:41:40 +01:00
2022-05-07 16:17:37 +02:00
const profile = {
2021-11-27 23:41:40 +01:00
...baseProfile,
locale: 'de-DE',
timezone: 'Europe/Berlin',
products,
refreshJourneyUseOutReconL: true,
trip: true,
reachableFrom: true,
};
2021-11-27 23:41:40 +01:00
2022-05-07 16:17:37 +02:00
export {
profile,
};