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

70 lines
1.1 KiB
JavaScript
Raw 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-01-15 00:09:47 +01:00
const baseProfile = require('./base.json');
2021-01-15 00:09:47 +01:00
const products = [{
id: 'bart',
mode: 'train',
bitmasks: [128],
name: 'BART',
short: 'BART',
default: true,
}, {
id: 'regional-train',
mode: 'train',
bitmasks: [8],
name: 'regional trains (Caltrain, Capitol Corridor, ACE)',
short: 'regional trains',
default: true,
}, {
id: 'bus',
mode: 'bus',
bitmasks: [32],
name: 'Bus',
short: 'Bus',
default: true,
}, {
id: 'ferry',
mode: 'watercraft',
bitmasks: [64],
name: 'Ferry',
short: 'Ferry',
default: true,
}, {
id: 'tram',
mode: 'train',
bitmasks: [256],
name: 'Tram',
short: 'Tram',
default: true,
}, {
id: 'cable-car',
mode: 'train',
bitmasks: [4],
name: 'cable car',
short: 'cable car',
default: true,
}];
2021-01-15 00:09:47 +01:00
2022-05-07 16:17:37 +02:00
const profile = {
...baseProfile,
2021-01-15 00:09:47 +01:00
locale: 'en-US',
timezone: 'America/Los_Angeles',
ver: '1.40',
2021-01-15 00:09:47 +01:00
products,
trip: true,
radar: true,
reachableFrom: true,
refreshJourneyUseOutReconL: true,
};
2021-01-15 00:09:47 +01:00
2022-05-07 16:17:37 +02:00
export {
profile,
};