Skip to content

Commit 0170bda

Browse files
committed
fix: added new polygon for Vaasa
1 parent 6b280fa commit 0170bda

2 files changed

Lines changed: 287 additions & 0 deletions

File tree

Lines changed: 286 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,286 @@
1+
{
2+
"type" : "FeatureCollection",
3+
"name" : "Vyöhykkeet",
4+
"features" : [
5+
{
6+
"type" : "Feature",
7+
"styles": [
8+
{
9+
"color": "#666",
10+
"weight": 2,
11+
"opacity": 1
12+
},
13+
{
14+
"color": "#333",
15+
"weight": 12,
16+
"opacity": 0.2
17+
}
18+
],
19+
"geometry" : {
20+
"type" : "Polygon",
21+
"coordinates" : [
22+
[
23+
24+
[ 21.80091, 63.09565 ],
25+
[ 21.80074, 63.1031 ],
26+
[ 21.8004, 63.10618 ],
27+
[ 21.81437, 63.11153 ],
28+
[ 21.79239, 63.11328 ],
29+
[ 21.78952, 63.11465 ],
30+
[ 21.78634, 63.1149 ],
31+
[ 21.7809, 63.11527 ],
32+
[ 21.78014, 63.11456 ],
33+
[ 21.75903, 63.12495 ],
34+
[ 21.7504, 63.12168 ],
35+
[ 21.75513, 63.1127 ],
36+
[ 21.7446, 63.10945 ],
37+
[ 21.74053, 63.11453 ],
38+
[ 21.72938, 63.11444 ],
39+
[ 21.71937, 63.11666 ],
40+
[ 21.72141, 63.12572 ],
41+
[ 21.70857, 63.1285 ],
42+
[ 21.69407, 63.12739 ],
43+
[ 21.66376, 63.1199 ],
44+
[ 21.66867, 63.12474 ],
45+
[ 21.66562, 63.12633 ],
46+
[ 21.6642, 63.12968 ],
47+
[ 21.66672, 63.13274 ],
48+
[ 21.66158, 63.1356 ],
49+
[ 21.66272, 63.13675 ],
50+
[ 21.66207, 63.13809 ],
51+
[ 21.66136, 63.13874 ],
52+
[ 21.6593, 63.14095 ],
53+
[ 21.65726, 63.1419 ],
54+
[ 21.6563, 63.1427 ],
55+
[ 21.65523, 63.14311 ],
56+
[ 21.65469, 63.14375 ],
57+
[ 21.65681, 63.14681 ],
58+
[ 21.64916, 63.14733 ],
59+
[ 21.64291, 63.14701 ],
60+
[ 21.63688, 63.14608 ],
61+
[ 21.63018, 63.14623 ],
62+
[ 21.62771, 63.14936 ],
63+
[ 21.61984, 63.14775 ],
64+
[ 21.61928, 63.15202 ],
65+
[ 21.61606, 63.15449 ],
66+
[ 21.60533, 63.15741 ],
67+
[ 21.60481, 63.16034 ],
68+
[ 21.59792, 63.16207 ],
69+
[ 21.56946, 63.16737 ],
70+
[ 21.56134, 63.16822 ],
71+
[ 21.54374, 63.1668 ],
72+
[ 21.53433, 63.16046 ],
73+
[ 21.5365, 63.15587 ],
74+
[ 21.54179, 63.15106 ],
75+
[ 21.53966, 63.14785 ],
76+
[ 21.53975, 63.14583 ],
77+
[ 21.54274, 63.14396 ],
78+
[ 21.54591, 63.14404 ],
79+
[ 21.54775, 63.14282 ],
80+
[ 21.5501, 63.14058 ],
81+
[ 21.55123, 63.13989 ],
82+
[ 21.55254, 63.13797 ],
83+
[ 21.55173, 63.13536 ],
84+
[ 21.55226, 63.13468 ],
85+
[ 21.55702, 63.12848 ],
86+
[ 21.55657, 63.12779 ],
87+
[ 21.55674, 63.12682 ],
88+
[ 21.5586, 63.1257 ],
89+
[ 21.56067, 63.12493 ],
90+
[ 21.56203, 63.12394 ],
91+
[ 21.56285, 63.12276 ],
92+
[ 21.57272, 63.11362 ],
93+
[ 21.57527, 63.10472 ],
94+
[ 21.5631, 63.10188 ],
95+
[ 21.55607, 63.09503 ],
96+
[ 21.54763, 63.09216 ],
97+
[ 21.53857, 63.08515 ],
98+
[ 21.52923, 63.08077 ],
99+
[ 21.52281, 63.07937 ],
100+
[ 21.51916, 63.07137 ],
101+
[ 21.51674, 63.06788 ],
102+
[ 21.45841, 63.06075 ],
103+
[ 21.45942, 63.03719 ],
104+
[ 21.43426, 63.0165 ],
105+
[ 21.49622, 63.00471 ],
106+
[ 21.53035, 62.9905 ],
107+
[ 21.53594, 62.98639 ],
108+
[ 21.54945, 62.98265 ],
109+
[ 21.55722, 62.98335 ],
110+
[ 21.56312, 62.98481 ],
111+
[ 21.55781, 62.98891 ],
112+
[ 21.56744, 62.99953 ],
113+
[ 21.58726, 63.02112 ],
114+
[ 21.61043, 63.03926 ],
115+
[ 21.62499, 63.05223 ],
116+
[ 21.63748, 63.06333 ],
117+
[ 21.64636, 63.06105 ],
118+
[ 21.66352, 63.05588 ],
119+
[ 21.68076, 63.05062 ],
120+
[ 21.69312, 63.04777 ],
121+
[ 21.71648, 63.04294 ],
122+
[ 21.73402, 63.04212 ],
123+
[ 21.73437, 63.04365 ],
124+
[ 21.74574, 63.04193 ],
125+
[ 21.74978, 63.0414 ],
126+
[ 21.76065, 63.03919 ],
127+
[ 21.76692, 63.03818 ],
128+
[ 21.77232, 63.03771 ],
129+
[ 21.77486, 63.03857 ],
130+
[ 21.77904, 63.04021 ],
131+
[ 21.78049, 63.03951 ],
132+
[ 21.78548, 63.04037 ],
133+
[ 21.78515, 63.0419 ],
134+
[ 21.78676, 63.04288 ],
135+
[ 21.78841, 63.0442 ],
136+
[ 21.80519, 63.05151 ],
137+
[ 21.81941, 63.05767 ],
138+
[ 21.82889, 63.06168 ],
139+
[ 21.81014, 63.08869 ],
140+
[ 21.80618, 63.0944 ],
141+
[ 21.80091, 63.09565 ]
142+
143+
],
144+
[
145+
146+
[ 21.80618, 63.0944 ],
147+
[ 21.80618, 63.0944 ],
148+
[ 21.80574, 63.09503 ],
149+
[ 21.80618, 63.0944 ]
150+
151+
]
152+
]
153+
},
154+
"properties" : {
155+
"Zone" : "A"
156+
}
157+
},
158+
{
159+
"type" : "Feature",
160+
"styles": [
161+
{
162+
"color": "#666",
163+
"weight": 2,
164+
"opacity": 1
165+
},
166+
{
167+
"color": "#333",
168+
"weight": 12,
169+
"opacity": 0.2
170+
}
171+
],
172+
"geometry" : {
173+
"type" : "Polygon",
174+
"coordinates" : [
175+
[
176+
[ 21.82889, 63.06168 ],
177+
[ 21.86032, 63.06145 ],
178+
[ 21.89872, 63.06135 ],
179+
[ 21.9354, 63.06417 ],
180+
[ 21.91251, 63.07671 ],
181+
[ 21.91301, 63.07716 ],
182+
[ 21.91328, 63.07798 ],
183+
[ 21.93559, 63.08775 ],
184+
[ 21.92012, 63.08935 ],
185+
[ 21.90476, 63.09089 ],
186+
[ 21.89345, 63.09243 ],
187+
[ 21.86463, 63.09086 ],
188+
[ 21.84726, 63.08782 ],
189+
[ 21.82452, 63.08675 ],
190+
[ 21.81201, 63.086 ]
191+
]
192+
]
193+
},
194+
"properties" : {
195+
"Zone" : "B"
196+
}
197+
},
198+
{
199+
"type" : "Feature",
200+
"styles": [
201+
{
202+
"color": "#666",
203+
"weight": 2,
204+
"opacity": 1
205+
},
206+
{
207+
"color": "#333",
208+
"weight": 12,
209+
"opacity": 0.2
210+
}
211+
],
212+
"geometry" : {
213+
"type" : "Polygon",
214+
"coordinates" : [
215+
[
216+
[ 21.9354, 63.06417 ],
217+
[ 21.99199, 63.0587 ],
218+
[ 22.05743, 63.05605 ],
219+
[ 22.09368, 63.04913 ],
220+
[ 22.0982, 63.04622 ],
221+
[ 22.10103, 63.03904 ],
222+
[ 22.10103, 63.03356 ],
223+
[ 22.10187, 63.02801 ],
224+
[ 22.10367, 63.02304 ],
225+
[ 22.10704, 63.01654 ],
226+
[ 22.11631, 63.00617 ],
227+
[ 22.13027, 63.00138 ],
228+
[ 22.14876, 62.99787 ],
229+
[ 22.15524, 63.00316 ],
230+
[ 22.1557, 63.00509 ],
231+
[ 22.15176, 63.0093 ],
232+
[ 22.16011, 63.01084 ],
233+
[ 22.16057, 63.01291 ],
234+
[ 22.16497, 63.0188 ],
235+
[ 22.17197, 63.03519 ],
236+
[ 22.17008, 63.05152 ],
237+
[ 22.10801, 63.064 ],
238+
[ 21.93559, 63.08775 ]
239+
]
240+
]
241+
},
242+
"properties" : {
243+
"Zone" : "C"
244+
}
245+
},
246+
{
247+
"type" : "Feature",
248+
"geometry" : {
249+
"type" : "Point",
250+
"coordinates" : [ 21.66995, 63.07575 ]
251+
},
252+
"properties" : {
253+
"icon": {
254+
"id": "icon-zone-a",
255+
"svg": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><circle fill='#000a8c' cx='11' cy='11' r='11' /><path fill='#FFF' d='M8.785 12.076l2.273-5.253 2.273 5.253H8.785zm8.52 3.676L12.14 4.184c-.41-.919-1.707-.919-2.118 0L4.867 15.752c-.092.185-.148.352-.148.52 0 .593.462 1.057 1.054 1.057.48 0 .868-.26 1.053-.723l1.09-2.506H14.2l1.054 2.431c.203.483.573.798 1.109.798.61 0 1.071-.482 1.071-1.095a.997.997 0 0 0-.129-.482z'/></svg>"
256+
}
257+
}
258+
},
259+
{
260+
"type" : "Feature",
261+
"geometry" : {
262+
"type" : "Point",
263+
"coordinates" : [ 21.86556, 63.07686 ]
264+
},
265+
"properties" : {
266+
"icon": {
267+
"id": "icon-zone-b",
268+
"svg": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><circle fill='#000a8c' cx='11' cy='11' r='11' /><path fill='#FFF' d='M6 5.415A1.14 1.14 0 0 1 7.155 4.26h4.695c1.5 0 2.66.41 3.405 1.155.58.566.898 1.35.875 2.16v.035a3.11 3.11 0 0 1-1.84 2.89c1.525.5 2.59 1.395 2.59 3.165v.035c0 2.33-1.92 3.575-4.825 3.575h-4.88A1.135 1.135 0 0 1 6 16.14V5.415zm5.385 4.34c1.47 0 2.455-.58 2.455-1.77V7.95c0-1.025-.82-1.66-2.29-1.66H8.275v3.465h3.11zm.67 5.5c1.56 0 2.5-.615 2.5-1.785v-.04c0-1.095-.875-1.75-2.68-1.75h-3.6v3.575h3.78z'/></svg>"
269+
}
270+
}
271+
},
272+
{
273+
"type" : "Feature",
274+
"geometry" : {
275+
"type" : "Point",
276+
"coordinates" : [ 22.13532, 63.04279 ]
277+
},
278+
"properties" : {
279+
"icon": {
280+
"id": "icon-zone-c",
281+
"svg": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><circle fill='#000a8c' cx='11' cy='11' r='11' /><path fill='#FFF' d='M4.47 10.815v-.035a6.6 6.6 0 0 1 6.72-6.745A6.84 6.84 0 0 1 15.66 5.5c.282.217.447.554.445.91a1.11 1.11 0 0 1-1.135 1.12 1.14 1.14 0 0 1-.69-.225 4.725 4.725 0 0 0-3.11-1.175c-2.475 0-4.3 2.05-4.3 4.6v.04c0 2.55 1.805 4.615 4.3 4.615a4.675 4.675 0 0 0 3.26-1.245 1.07 1.07 0 0 1 1.4 1.62 6.67 6.67 0 0 1-4.73 1.74 6.555 6.555 0 0 1-6.63-6.685z'/></svg>"
282+
}
283+
}
284+
}
285+
]
286+
}

middleware/zones.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function setup(prefix) {
1212
Lappeenranta: require('./config/lpr_zone_areas_20220113.json'),
1313
OULU: require('./config/oulu_zone_areas_20230223.json'),
1414
Joensuu: require('./config/joensuu_zone_areas_20230830.json'),
15+
Vaasa: require('./config/vaasa_zone_lines_20231220.json'),
1516
};
1617

1718
// precompute bounding boxes to optimize test speed

0 commit comments

Comments
 (0)