-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathconfig.default.js
856 lines (761 loc) · 22.7 KB
/
config.default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
/* eslint-disable prefer-template */
import safeJsonParse from '../util/safeJsonParser';
import { BIKEAVL_WITHMAX } from '../util/citybikes';
const CONFIG = process.env.CONFIG || 'default';
const API_URL = process.env.API_URL || 'https://dev-api.digitransit.fi';
const GEOCODING_BASE_URL =
process.env.GEOCODING_BASE_URL || `${API_URL}/geocoding/v1`;
const MAP_URL =
process.env.MAP_URL || 'https://digitransit-dev-cdn-origin.azureedge.net';
const MAP_VERSION = process.env.MAP_VERSION || 'v2';
const POI_MAP_PREFIX = `${MAP_URL}/map/v3/finland`;
const OTP_URL = process.env.OTP_URL || `${API_URL}/routing/v2/routers/finland/`;
const APP_PATH = process.env.APP_CONTEXT || '';
const {
SENTRY_DSN,
AXE,
NODE_ENV,
API_SUBSCRIPTION_QUERY_PARAMETER_NAME,
API_SUBSCRIPTION_HEADER_NAME,
API_SUBSCRIPTION_TOKEN,
RUN_ENV,
} = process.env;
const hasAPISubscriptionQueryParameter =
API_SUBSCRIPTION_QUERY_PARAMETER_NAME && API_SUBSCRIPTION_TOKEN;
const PORT = process.env.PORT || 8080;
const APP_DESCRIPTION = 'Digitransit journey planning UI';
const OTP_TIMEOUT = process.env.OTP_TIMEOUT || 12000;
const YEAR = 1900 + new Date().getYear();
const realtime = require('./realtimeUtils').default;
const REALTIME_PATCH = safeJsonParse(process.env.REALTIME_PATCH) || {};
export default {
SENTRY_DSN,
PORT,
AXE,
CONFIG,
NODE_ENV,
OTPTimeout: OTP_TIMEOUT,
URL: {
API_URL,
ASSET_URL: process.env.ASSET_URL,
MAP_URL,
OTP: OTP_URL,
MAP: {
default: `${MAP_URL}/map/${MAP_VERSION}/hsl-map/`,
sv: `${MAP_URL}/map/${MAP_VERSION}/hsl-map-sv/`,
},
STOP_MAP: {
default: `${POI_MAP_PREFIX}/fi/stops,stations/`,
sv: `${POI_MAP_PREFIX}/sv/stops,stations/`,
},
RENTAL_STATION_MAP: {
default: `${POI_MAP_PREFIX}/fi/rentalStations/`,
},
REALTIME_RENTAL_STATION_MAP: {
default: `${POI_MAP_PREFIX}/fi/realtimeRentalStations/`,
},
PARK_AND_RIDE_MAP: {
default: `${POI_MAP_PREFIX}/en/vehicleParking/`,
sv: `${POI_MAP_PREFIX}/sv/vehicleParking/`,
fi: `${POI_MAP_PREFIX}/fi/vehicleParking/`,
},
PARK_AND_RIDE_GROUP_MAP: {
default: `${POI_MAP_PREFIX}/en/vehicleParkingGroups/`,
sv: `${POI_MAP_PREFIX}/sv/vehicleParkingGroups/`,
fi: `${POI_MAP_PREFIX}/fi/vehicleParkingGroups/`,
},
FONT:
'https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Roboto:wght@400;700',
PELIAS: `${process.env.GEOCODING_BASE_URL || GEOCODING_BASE_URL}/search${
hasAPISubscriptionQueryParameter
? `?${API_SUBSCRIPTION_QUERY_PARAMETER_NAME}=${API_SUBSCRIPTION_TOKEN}`
: ''
}`,
PELIAS_REVERSE_GEOCODER: `${
process.env.GEOCODING_BASE_URL || GEOCODING_BASE_URL
}/reverse${
hasAPISubscriptionQueryParameter
? `?${API_SUBSCRIPTION_QUERY_PARAMETER_NAME}=${API_SUBSCRIPTION_TOKEN}`
: ''
}`,
PELIAS_PLACE: `${
process.env.GEOCODING_BASE_URL || GEOCODING_BASE_URL
}/place${
hasAPISubscriptionQueryParameter
? `?${API_SUBSCRIPTION_QUERY_PARAMETER_NAME}=${API_SUBSCRIPTION_TOKEN}`
: ''
}`,
ROUTE_TIMETABLES: {
HSL: `${API_URL}/timetables/v1/hsl/routes/`,
tampere: 'https://www.nysse.fi/aikataulut-ja-reitit/linjat/',
},
STOP_TIMETABLES: {
HSL: `${API_URL}/timetables/v1/hsl/stops/`,
},
WEATHER_DATA:
'https://opendata.fmi.fi/wfs?service=WFS&version=2.0.0&request=getFeature&storedquery_id=fmi::forecast::harmonie::surface::point::simple×tep=5¶meters=temperature,WindSpeedMS,WeatherSymbol3',
EMBEDDED_SEARCH_GENERATION: '/reittihakuelementti',
},
API_SUBSCRIPTION_QUERY_PARAMETER_NAME,
API_SUBSCRIPTION_HEADER_NAME,
API_SUBSCRIPTION_TOKEN,
RUN_ENV,
hasAPISubscriptionQueryParameter,
hasAPISubscriptionHeader:
API_SUBSCRIPTION_HEADER_NAME && API_SUBSCRIPTION_TOKEN,
APP_PATH: `${APP_PATH}`,
indexPath: '',
title: 'Reittihaku',
textLogo: false,
// Navbar logo
logo: 'default/digitransit-logo.png',
contactName: {
sv: 'Digitransit',
fi: 'Digitransit',
default: "Digitransit's",
},
// Default labels for manifest creation
name: 'Digitransit beta',
shortName: 'Digitransit',
searchParams: {},
feedIds: [],
realTime: realtime,
realTimePatch: REALTIME_PATCH,
// Google Tag Manager id
GTMid: process.env.GTM_ID || null,
/*
* Define the icon and icon color used for each citybike station. Two icons are available,
* 'citybike-stop-digitransit' and 'citybike-stop-digitransit-secondary'. For the first icon
* the color controls the color of the background and for the second the color of the bicycle
*/
getAutoSuggestIcons: {
// eslint-disable-next-line no-unused-vars
citybikes: station => {
return ['citybike-stop-digitransit', '#f2b62d'];
},
},
/*
* by default search endpoints from all but gtfs sources, correct gtfs source
* figured based on feedIds config variable
*/
searchSources: ['oa', 'osm', 'nlsfi'],
search: {
suggestions: {
useTransportIcons: false,
},
usePeliasStops: false,
mapPeliasModality: false,
peliasMapping: {},
peliasLayer: null,
peliasLocalization: null,
minimalRegexp: new RegExp('.{2,}'),
},
nearbyRoutes: {
radius: 10000,
bucketSize: 1000,
},
omitNonPickups: true,
maxNearbyStopAmount: 5,
maxNearbyStopRefetches: 5,
maxNearbyStopDistance: {
favorite: 100000,
bus: 100000,
tram: 100000,
subway: 100000,
rail: 100000,
ferry: 100000,
citybike: 100000,
airplane: 200000,
},
defaultSettings: {
accessibilityOption: 0,
bikeSpeed: 5.55,
ticketTypes: 'none',
walkBoardCost: 120,
walkReluctance: 1.8,
walkSpeed: 1.2,
includeBikeSuggestions: true,
includeParkAndRideSuggestions: false,
includeCarSuggestions: false,
showBikeAndParkItineraries: false,
},
/**
* These are used for dropdown selection of values to override the default
* settings. This means that values ought to be relative to the current default.
* If not, the selection may not make any sense.
*/
defaultOptions: {
walkReluctance: {
least: 5,
less: 3,
more: 1,
most: 0.2,
},
walkSpeed: [0.69, 0.97, 1.2, 1.67, 2.22],
bikeSpeed: [2.77, 4.15, 5.55, 6.94, 8.33],
},
walkBoardCostHigh: 1600,
suggestWalkMaxDistance: 10000,
suggestBikeMaxDistance: 30000,
// if you enable car suggestions but the linear distance between all points is less than this, then a car route will
// not be computed
suggestCarMinDistance: 2000,
minTransferTime: 90,
optimize: 'GREENWAYS',
transferPenalty: 0,
availableLanguages: ['fi', 'sv', 'en', 'fr', 'nb', 'de', 'da', 'es', 'ro'],
defaultLanguage: 'en',
// This timezone data will expire in 2037
timezoneData:
'Europe/Helsinki|EET EEST|-20 -30|0101010101010101010101010101010101010|22k10 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5',
allowLogin: false,
allowFavouritesFromLocalstorage: true,
useExtendedRouteTypes: false,
mainMenu: {
// Whether to show the left menu toggle button at all
show: true,
showDisruptions: true,
showLoginCreateAccount: true,
showOffCanvasList: true,
showFrontPageLink: true,
stopMonitor: {
show: false,
},
showEmbeddedSearch: true,
},
itinerary: {
// How long vehicle should be late in order to mark it delayed. Measured in seconds.
delayThreshold: 180,
// Wait time to show "wait leg"? e.g. 180 means over 3 minutes are shown as wait time.
// Measured in seconds.
waitThreshold: 180,
enableFeedback: false,
timeNavigation: {
enableButtonArrows: false,
},
// Number of days to include to the service time range from the future (DT-3317)
serviceTimeRange: 60,
},
map: {
useRetinaTiles: true,
tileSize: 512,
zoomOffset: -1,
minZoom: 9,
maxZoom: 18,
controls: {
zoom: {
// available controls positions: 'topleft', 'topright', 'bottomleft, 'bottomright'
position: 'bottomright',
},
scale: {
position: 'bottomright',
},
},
genericMarker: {
// Do not render name markers at zoom levels below this value
nameMarkerMinZoom: 18,
popup: {
offset: [106, 16],
maxWidth: 250,
minWidth: 250,
},
},
line: {
halo: {
weight: 7,
thinWeight: 2,
},
leg: {
weight: 6,
thinWeight: 2,
},
passiveColor: '#758993',
},
showZoomControl: true, // DT-3470
showLayerSelector: true, // DT-3470
showStopMarkerPopupOnMobile: true, // DT-3470
showScaleBar: true, // DT-3470
attribution:
'<a tabIndex="-1" href="http://osm.org/copyright">© OpenStreetMap</a>', // DT-3470, DT-3397
useModeIconsInNonTileLayer: false,
// areBounds is for keeping map and user inside given area
// Finland + Stockholm
areaBounds: {
corner1: [70.25, 32.25],
corner2: [58.99, 17.75],
},
},
stopCard: {
header: {
showDescription: true,
showStopCode: true,
showDistance: true,
},
},
autoSuggest: {
// Let Pelias suggest based on current user location
locationAware: true,
},
cityBike: {
// Config for map features. NOTE: availability for routing is controlled by
// transportModes.citybike.availableForSelection
showFullInfo: false,
cityBikeMinZoom: 14,
cityBikeSmallIconZoom: 14,
// When should bikeshare availability be rendered in orange rather than green
fewAvailableCount: 3,
networks: {},
capacity: BIKEAVL_WITHMAX,
buyInstructions: {
fi: 'Osta käyttöoikeutta päiväksi, viikoksi tai koko kaudeksi',
sv: 'Köp ett abonnemang för en dag, en vecka eller för en hel säsong',
en: 'Buy a daily, weekly or season pass',
},
},
// Lowest level for stops and terminals are rendered
stopsMinZoom: 13,
// Highest level when stops and terminals are still rendered as small markers
stopsSmallMaxZoom: 14,
// Highest level when terminals are still rendered instead of individual stops
terminalStopsMaxZoom: 18,
terminalStopsMinZoom: 12,
// lowest zoom level when to draw rail platforms
railPlatformsMinZoom: 15,
terminalNamesZoom: 16,
stopsIconSize: {
small: 8,
selected: 28,
default: 18,
},
appBarLink: { name: 'Digitransit', href: 'https://www.digitransit.fi/' },
appBarStyle: 'default', // DT-3375
colors: {
primary: '#000F94',
iconColors: {
'mode-airplane': '#0046ad',
'mode-bus': '#0088ce',
'mode-tram': '#6a8925',
'mode-metro': '#ed8c00',
'mode-rail': '#af8dbc',
'mode-ferry': '#247C7B',
'mode-citybike': '#f2b62d',
},
},
iconModeSet: 'digitransit',
fontWeights: {
medium: 700,
},
sprites: 'assets/svg-sprite.default.svg',
disruption: {
showInfoButton: true,
},
agency: {
show: true,
},
socialMedia: {
title: 'Digitransit',
description: APP_DESCRIPTION,
locale: 'en_US',
image: {
url: '/img/default-social-share.png',
width: 2400,
height: 1260,
},
twitter: {
card: 'summary_large_image',
site: '@hsldevcom',
},
},
meta: {
description: APP_DESCRIPTION,
keywords: 'digitransit',
},
hideExternalOperator: () => false,
// Ticket information feature toggle
showTicketInformation: false,
ticketInformation: {
// This is the name of the primary agency operating in the area.
// It is used when a ticket price cannot be shown to the user, indicating
// that the primary agency is not responsible for ticketing.
/*
primaryAgencyName: ...,
*/
},
useTicketIcons: false,
showRouteInformation: false,
modeToOTP: {
bus: 'BUS',
tram: 'TRAM',
rail: 'RAIL',
subway: 'SUBWAY',
citybike: 'BICYCLE_RENT',
airplane: 'AIRPLANE',
ferry: 'FERRY',
funicular: 'FUNICULAR',
walk: 'WALK',
},
// Control what transport modes that should be possible to select in the UI
// and whether the transport mode is used in trip planning by default.
transportModes: {
bus: {
availableForSelection: true,
defaultValue: true,
},
tram: {
availableForSelection: true,
defaultValue: true,
},
rail: {
availableForSelection: true,
defaultValue: true,
},
subway: {
availableForSelection: true,
defaultValue: true,
},
airplane: {
availableForSelection: true,
defaultValue: true,
},
ferry: {
availableForSelection: true,
defaultValue: true,
},
funicular: {
availableForSelection: false,
defaultValue: false,
},
citybike: {
availableForSelection: false,
defaultValue: false, // always false
},
},
// modes that should not coexist with BICYCLE mode
modesWithNoBike: ['BICYCLE_RENT', 'WALK'],
moment: {
relativeTimeThreshold: {
seconds: 55,
minutes: 59,
hours: 23,
days: 26,
months: 11,
},
},
customizeSearch: {
walkReluctance: {
available: true,
},
walkBoardCost: {
available: true,
},
transferMargin: {
available: true,
},
walkingSpeed: {
available: true,
},
ticketOptions: {
available: true,
},
accessibility: {
available: true,
},
transferpenalty: {
available: true,
},
},
areaPolygon: [
[18.776, 60.3316],
[18.9625, 60.7385],
[19.8615, 60.8957],
[20.4145, 61.1942],
[20.4349, 61.9592],
[19.7853, 63.2157],
[20.4727, 63.6319],
[21.6353, 63.8559],
[23.4626, 64.7794],
[23.7244, 65.3008],
[23.6873, 65.8569],
[23.2069, 66.2701],
[23.4627, 66.8344],
[22.9291, 67.4662],
[23.0459, 67.9229],
[20.5459, 68.7605],
[20.0996, 69.14],
[21.426, 69.4835],
[21.9928, 69.4009],
[22.9226, 68.8678],
[23.8108, 69.0145],
[24.6903, 68.8614],
[25.2262, 69.0596],
[25.4029, 69.7235],
[26.066, 70.0559],
[28.2123, 70.2496],
[29.5813, 69.7854],
[29.8467, 69.49],
[28.9502, 68.515],
[30.4855, 67.6952],
[29.4962, 66.9232],
[30.5219, 65.8728],
[30.1543, 64.9646],
[30.9641, 64.1321],
[30.572, 63.7098],
[31.5491, 63.3309],
[31.9773, 62.9304],
[31.576, 62.426],
[27.739, 60.1117],
[26.0945, 59.8015],
[22.4235, 59.3342],
[20.2983, 59.2763],
[19.3719, 59.6858],
[18.7454, 60.1305],
[18.776, 60.3316],
],
// Minimun distance between from and to locations in meters. User is noticed
// if distance is less than this.
minDistanceBetweenFromAndTo: 20,
// If certain mode(s) only exist in limited number of areas, listing the areas as a list of polygons for
// selected mode key will remove the mode(s) from queries if no coordinates in the query are within the polygon(s).
// This reduces complexity in finding routes for the query.
modePolygons: {},
menu: {
copyright: { label: `© Digitransit ${YEAR}` },
content: [
{
name: 'menu-feedback',
href: 'https://github.com/HSLdevcom/digitransit-ui/issues',
},
{
name: 'about-this-service',
route: '/tietoja-palvelusta',
},
],
},
// Default origin endpoint to use when user is outside of area
defaultEndpoint: {
address: 'Helsinki-Vantaan Lentoasema',
lat: 60.317429,
lon: 24.9690395,
},
availableRouteTimetables: {},
routeTimetableUrlResolver: {},
showTenWeeksOnRouteSchedule: true,
aboutThisService: {
fi: [
{
header: 'Tietoja palvelusta',
paragraphs: [
'Palvelu kattaa joukkoliikenteen, kävelyn, pyöräilyn ja yksityisautoilun rajatuilta osin. Palvelu perustuu Digitransit-palvelualustaan.',
],
},
{
header: 'Digitransit-palvelualusta',
paragraphs: [
'Digitransit-palvelualusta on HSL:n ja Traficomin kehittämä avoimen lähdekoodin reititystuote.',
],
},
{
header: 'Tietolähteet',
paragraphs: [
'Kartat, tiedot kaduista, rakennuksista, pysäkkien sijainnista ynnä muusta tarjoaa © OpenStreetMap contributors. Osoitetiedot tuodaan Digi- ja väestötietoviraston rakennustietorekisteristä. Joukkoliikenteen reitit ja aikataulut ladataan Traficomin valtakunnallisesta joukkoliikenteen tietokannasta.',
],
},
],
sv: [
{
header: 'Om tjänsten',
paragraphs: [
'Reseplaneraren täcker med vissa begränsningar kollektivtrafik, promenad, cykling samt privatbilism. Tjänsten baserar sig på Digitransit-plattformen.',
],
},
{
header: 'Digitransit-plattformen',
paragraphs: [
'Digitransit-plattformen är en öppen programvara utvecklad av HRT och Traficom.',
],
},
{
header: 'Datakällor',
paragraphs: [
'Kartor, gator, byggnader, hållplatser och dylik information erbjuds av © OpenStreetMap contributors. Addressinformation hämtas från BRC:s byggnadsinformationsregister. Kollektivtrafikens rutter och tidtabeller hämtas från Traficoms landsomfattande kollektivtrafiksdatabas.',
],
},
],
en: [
{
header: 'About this service',
paragraphs: [
'The service covers public transport, walking, cycling, and some private car use. Service is built on Digitransit platform.',
],
},
{
header: 'Digitransit platform',
paragraphs: [
'The Digitransit service platform is an open source routing platform developed by HSL and Traficom.',
],
},
{
header: 'Data sources',
paragraphs: [
"Maps, streets, buildings, stop locations etc. are provided by © OpenStreetMap contributors. Address data is retrieved from the Building and Dwelling Register of the Finnish Population Register Center. Public transport routes and timetables are downloaded from Traficom's national public transit database.",
],
},
],
nb: {},
fr: {},
de: {},
},
staticMessages: [],
staticIEMessage: [
{
id: '3',
priority: -1,
content: {
fi: [
{
type: 'text',
content:
'Palvelu ei tue käyttämääsi selainta. Päivitä selainohjelmasi tai lataa uusi selain oheisista linkeistä.\n',
},
{
type: 'a',
content: 'Google Chrome',
href: 'https://www.google.com/chrome/',
},
{
type: 'a',
content: 'Firefox',
href: 'https://www.mozilla.org/fi/firefox/new/',
},
{
type: 'a',
content: 'Microsoft Edge',
href: 'https://www.microsoft.com/en-us/windows/microsoft-edge',
},
],
en: [
{
type: 'text',
content:
'The service does not support the browser you are using. Update your browser or download a new browser using the links below.\n',
},
{
type: 'a',
content: 'Google Chrome',
href: 'https://www.google.com/chrome/',
},
{
type: 'a',
content: 'Firefox',
href: 'https://www.mozilla.org/fi/firefox/new/',
},
{
type: 'a',
content: 'Microsoft Edge',
href: 'https://www.microsoft.com/en-us/windows/microsoft-edge',
},
],
sv: [
{
type: 'text',
content:
'Tjänsten stöder inte den webbläsare som du har i bruk. Uppdatera din webbläsare eller ladda ner en ny webbläsare via nedanstående länk.\n',
},
{
type: 'a',
content: 'Google Chrome',
href: 'https://www.google.com/chrome/',
},
{
type: 'a',
content: 'Firefox',
href: 'https://www.mozilla.org/sv-SE/firefox/new/',
},
{
type: 'a',
content: 'Microsoft Edge',
href: 'https://www.microsoft.com/en-us/windows/microsoft-edge',
},
],
},
},
],
/* Do not change order of theme map lines */
themeMap: {
hsl: 'reittiopas',
turku: '(turku|foli)',
lappeenranta: 'lappeenranta',
joensuu: 'joensuu',
oulu: 'oulu',
hameenlinna: 'hameenlinna',
matka: 'matka',
vaasa: 'vaasa',
walttiOpas: 'waltti',
rovaniemi: 'rovaniemi',
kouvola: 'kouvola',
tampere: 'tampere',
mikkeli: 'mikkeli',
kotka: 'kotka',
jyvaskyla: 'jyvaskyla',
lahti: 'lahti',
kuopio: 'kuopio',
varely: '(seutuplus|varely)',
matkalaskuri: 'kela',
pori: 'pori',
},
minutesToDepartureLimit: 9,
imperialEnabled: false,
// this flag when true enables imperial measurements 'feet/miles system'
vehicles: false,
showVehiclesOnStopPage: false,
// DT-3551: Link to traffic information page.
trafficNowLink: '',
timetables: {},
// DT-3611
showVehiclesOnSummaryPage: false,
showWeatherInformation: true,
showBikeAndPublicItineraries: false,
showBikeAndParkItineraries: false,
includeBikeSuggestions: true,
includeCarSuggestions: false,
includeParkAndRideSuggestions: false,
// Include both bike and park and bike and public
includePublicWithBikePlan: false,
// Park and ride and car suggestions separated
separatedParkAndRideSwitch: false,
showNearYouButtons: false,
nearYouModes: [],
narrowNearYouButtons: false,
/* Option to disable the "next" column of the Route panel as it can be confusing sometimes: https://github.com/mfdz/digitransit-ui/issues/167 */
displayNextDeparture: true,
messageBarAlerts: false,
availableTickets: {},
zones: {
stops: false,
itinerary: false,
},
viaPointsEnabled: false,
// DT-4802 Toggling this off shows the alert bodytext instead of the header
showAlertHeader: true,
showSimilarRoutesOnRouteDropDown: false,
prioritizedStopsNearYou: {},
routeNotifications: [],
constantOperationStops: {},
constantOperationRoutes: {},
embeddedSearch: {
title: {
fi: 'Reittihakuelementti',
en: 'Route search element',
sv: 'Ruttsökningselement',
},
infoText: {
fi:
'Luo reittihakuelementti ja lisää se omaan palveluusi. Hakukomponentin Hae reitti -painikkeesta siirrytään Reittioppaaseen.',
en:
'Create a route search element and add it to your own service. The Find route button in the search component will transfer you to the journey planner.',
sv:
'Skapa ett ruttsökningselement och lägg det till din egen tjänst. Sök rutt-knappen i sökkomponenten tar dig till reseplaneraren.',
},
},
showAlternativeLegs: true,
};