diff --git a/app/configurations/config.lahti.js b/app/configurations/config.lahti.js index 2079fd41ef..86f841fc59 100644 --- a/app/configurations/config.lahti.js +++ b/app/configurations/config.lahti.js @@ -1,5 +1,6 @@ /* eslint-disable prefer-template */ import configMerger from '../util/configMerger'; +import { BIKEAVL_BIKES } from '../util/citybikes'; const CONFIG = 'lahti'; const APP_TITLE = 'LSL reittiopas'; @@ -20,6 +21,7 @@ export default configMerger(walttiConfig, { primary: '#0066B3', iconColors: { 'mode-bus': '#0066B3', + 'mode-citybike': '#f2b62d', }, }, @@ -144,4 +146,36 @@ export default configMerger(walttiConfig, { vehicles: true, showVehiclesOnStopPage: true, showVehiclesOnSummaryPage: true, + + transportModes: { + citybike: { + availableForSelection: true, + }, + }, + + cityBike: { + networks: { + freebike_lahti: { + enabled: true, + season: { + // 24.4. - 17.11. + start: new Date(new Date().getFullYear(), 3, 24), + end: new Date(new Date().getFullYear(), 10, 18), + }, + capacity: BIKEAVL_BIKES, + icon: 'citybike', + name: { + fi: 'Mankeli', + sv: 'Mankeli', + en: 'Mankeli', + }, + type: 'citybike', + url: { + fi: 'https://kaupunkipyorat.lahti.fi/', + sv: 'https://kaupunkipyorat.lahti.fi/?lang=2', + en: 'https://kaupunkipyorat.lahti.fi/?lang=19', + }, + }, + }, + }, });