Skip to content

Commit a4ee69d

Browse files
authored
Merge pull request #5671 from HSLdevcom/AB#429
AB#429 service area polygon for varely
2 parents 8732673 + e894f31 commit a4ee69d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

app/configurations/config.varely.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ const MAP_URL = process.env.MAP_URL || 'https://dev-cdn.digitransit.fi';
1010
const POI_MAP_PREFIX = `${MAP_URL}/map/v3/varely`;
1111
const colorPrimary = '#008161';
1212

13-
const minLat = 59.98;
14-
const maxLat = 61.8;
15-
const minLon = 21;
16-
const maxLon = 23.9;
17-
1813
export default configMerger(walttiConfig, {
1914
CONFIG,
2015

@@ -78,18 +73,23 @@ export default configMerger(walttiConfig, {
7873

7974
nearYouModes: ['bus', 'ferry'],
8075

81-
searchParams: {
82-
'boundary.rect.min_lat': minLat,
83-
'boundary.rect.max_lat': maxLat,
84-
'boundary.rect.min_lon': minLon,
85-
'boundary.rect.max_lon': maxLon,
86-
},
76+
useSearchPolygon: true,
8777

8878
areaPolygon: [
89-
[minLon, minLat],
90-
[minLon, maxLat],
91-
[maxLon, maxLat],
92-
[maxLon, minLat],
79+
[21.0, 59.75],
80+
[22.83, 59.77],
81+
[22.92, 59.96],
82+
[23.73, 60.15],
83+
[24.04, 60.65],
84+
[23.38, 60.8],
85+
[23.33, 61.06],
86+
[22.68, 61.47],
87+
[22.92, 61.75],
88+
[22.79, 61.98],
89+
[22.97, 62.27],
90+
[22.58, 62.36],
91+
[22.03, 62.1],
92+
[21.0, 62.02],
9393
],
9494

9595
map: {

0 commit comments

Comments
 (0)