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
|
2024-02-06 22:58:49 +01:00
|
|
|
import {createRequire} from 'module';
|
|
|
|
const require = createRequire(import.meta.url);
|
2021-11-27 23:41:40 +01:00
|
|
|
|
2024-02-06 22:58:49 +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',
|
2024-08-13 00:43:17 +02:00
|
|
|
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,
|
2024-02-06 22:58:49 +01:00
|
|
|
}];
|
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,
|
2024-02-06 22:58:49 +01:00
|
|
|
};
|
2021-11-27 23:41:40 +01:00
|
|
|
|
2022-05-07 16:17:37 +02:00
|
|
|
export {
|
|
|
|
profile,
|
2024-02-06 22:58:49 +01:00
|
|
|
};
|