Skip to content

Commit

Permalink
Merge pull request #4868 from HSLdevcom/DT-5977
Browse files Browse the repository at this point in the history
DT-5977 Varely config
  • Loading branch information
optionsome authored Oct 9, 2023
2 parents dfc73f3 + 6a1a0d6 commit fc8989c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/configurations/config.matka.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default {
'Salo',
'Pori',
'Raasepori',
'VARELY',
],

additionalFeedIds: {
Expand Down Expand Up @@ -510,6 +511,11 @@ export default {
sv: 'Raseborg',
en: 'Raasepori',
},
VARELY: {
fi: 'Varsinais-Suomi',
sv: 'Egentliga Finland',
en: 'Varsinais-Suomi',
},
},
stopCard: {
header: {
Expand Down
24 changes: 21 additions & 3 deletions app/configurations/config.varely.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default configMerger(walttiConfig, {
},
},

feedIds: ['VARELY', 'FOLI'],
feedIds: ['VARELY', 'FOLI', 'Rauma'],

colors: {
primary: colorPrimary,
Expand Down Expand Up @@ -107,8 +107,8 @@ export default configMerger(walttiConfig, {
/* Enable real-time map layer for vehicle positions */
vehicles: false,
viaPointsEnabled: false,
showVehiclesOnStopPage: false,
showVehiclesOnSummaryPage: false,
showVehiclesOnStopPage: true,
showVehiclesOnSummaryPage: true,

aboutThisService: {
fi: [
Expand Down Expand Up @@ -139,6 +139,24 @@ export default configMerger(walttiConfig, {
],
},

sourceForAlertsAndDisruptions: {
VARELY: {
fi: 'Varsinais-Suomi',
sv: 'Egentliga Finland',
en: 'Varsinais-Suomi',
},
Rauma: {
fi: 'Rauma',
sv: 'Raumo',
en: 'Rauma',
},
FOLI: {
fi: 'Turun seutu',
sv: 'Åboregion',
en: 'Turku region',
},
},

staticMessages: [],

showNearYouButtons: true,
Expand Down
11 changes: 11 additions & 0 deletions app/configurations/realtimeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,17 @@ export default {

routeSelector: defaultRouteSelector,

active: true,
},
VARELY: {
mqttTopicResolver: walttiTopicResolver,

mqtt: 'wss://mqtt.digitransit.fi',

gtfsrt: true,

routeSelector: defaultRouteSelector,

active: true,
},
};

0 comments on commit fc8989c

Please sign in to comment.