Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions middleware/config/mikkeli_zone_areas_20260122.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": "FeatureCollection",
"name": "mikkeli_zone_areas_20260122",
"xy_coordinate_resolution": 1e-06,
"features": [
{ "type": "Feature", "properties": { "Zone": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 27.651842, 61.925301 ], [ 27.409567, 61.964791 ], [ 27.218738, 61.971326 ], [ 27.096315, 61.967763 ], [ 26.885786, 61.930031 ], [ 26.762735, 61.872752 ], [ 26.678769, 61.825157 ], [ 26.643843, 61.772733 ], [ 26.647086, 61.696544 ], [ 26.637842, 61.623509 ], [ 26.674484, 61.583723 ], [ 26.68327, 61.529988 ], [ 26.886729, 61.451627 ], [ 27.018135, 61.413813 ], [ 27.164255, 61.399702 ], [ 27.202262, 61.391165 ], [ 27.379967, 61.385358 ], [ 27.497206, 61.413984 ], [ 27.668982, 61.45313 ], [ 27.826942, 61.548337 ], [ 27.859263, 61.753629 ], [ 27.735071, 61.867759 ], [ 27.651842, 61.925301 ] ], [ [ 27.254598, 61.457972 ], [ 27.21695, 61.47236 ], [ 27.084763, 61.499917 ], [ 27.005343, 61.535092 ], [ 26.952297, 61.556874 ], [ 26.874045, 61.594079 ], [ 26.839873, 61.640437 ], [ 26.826353, 61.67908 ], [ 26.826192, 61.707897 ], [ 26.849656, 61.755019 ], [ 26.888149, 61.77544 ], [ 26.941517, 61.804294 ], [ 27.027648, 61.835174 ], [ 27.167632, 61.864654 ], [ 27.237692, 61.878608 ], [ 27.298202, 61.880454 ], [ 27.374505, 61.864247 ], [ 27.414525, 61.85218 ], [ 27.541888, 61.8187 ], [ 27.646147, 61.7764 ], [ 27.662362, 61.755432 ], [ 27.702669, 61.700586 ], [ 27.704007, 61.629579 ], [ 27.685116, 61.576955 ], [ 27.528881, 61.494001 ], [ 27.282922, 61.454662 ], [ 27.254598, 61.457972 ] ] ] } },
{ "type": "Feature", "properties": { "Zone": "C" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 27.541888, 61.8187 ], [ 27.414525, 61.85218 ], [ 27.374505, 61.864247 ], [ 27.298202, 61.880454 ], [ 27.237692, 61.878608 ], [ 27.167632, 61.864654 ], [ 27.027648, 61.835174 ], [ 26.941517, 61.804294 ], [ 26.888149, 61.77544 ], [ 26.849656, 61.755019 ], [ 26.826192, 61.707897 ], [ 26.826353, 61.67908 ], [ 26.839873, 61.640437 ], [ 26.874045, 61.594079 ], [ 26.952297, 61.556874 ], [ 27.005343, 61.535092 ], [ 27.084763, 61.499917 ], [ 27.21695, 61.47236 ], [ 27.254598, 61.457972 ], [ 27.282922, 61.454662 ], [ 27.528881, 61.494001 ], [ 27.685116, 61.576955 ], [ 27.704007, 61.629579 ], [ 27.702669, 61.700586 ], [ 27.662362, 61.755432 ], [ 27.646147, 61.7764 ], [ 27.541888, 61.8187 ] ], [ [ 27.24027, 61.576361 ], [ 27.159, 61.592852 ], [ 27.064173, 61.619641 ], [ 27.054543, 61.625332 ], [ 27.061685, 61.642416 ], [ 27.068018, 61.682754 ], [ 27.059403, 61.703601 ], [ 27.070578, 61.72414 ], [ 27.106556, 61.749071 ], [ 27.133847, 61.759908 ], [ 27.221316, 61.77682 ], [ 27.256673, 61.781162 ], [ 27.305012, 61.779888 ], [ 27.351482, 61.778018 ], [ 27.399101, 61.769959 ], [ 27.470436, 61.719412 ], [ 27.498877, 61.693605 ], [ 27.492355, 61.633446 ], [ 27.463663, 61.613 ], [ 27.45026, 61.59863 ], [ 27.389858, 61.577417 ], [ 27.277326, 61.574958 ], [ 27.24027, 61.576361 ] ] ] } },
{ "type": "Feature", "properties": { "Zone": "B" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 27.399101, 61.769959 ], [ 27.351482, 61.778018 ], [ 27.305012, 61.779888 ], [ 27.256673, 61.781162 ], [ 27.221316, 61.77682 ], [ 27.133847, 61.759908 ], [ 27.106556, 61.749071 ], [ 27.070578, 61.72414 ], [ 27.059403, 61.703601 ], [ 27.068018, 61.682754 ], [ 27.061685, 61.642416 ], [ 27.054543, 61.625332 ], [ 27.064173, 61.619641 ], [ 27.159, 61.592852 ], [ 27.24027, 61.576361 ], [ 27.277326, 61.574958 ], [ 27.389858, 61.577417 ], [ 27.45026, 61.59863 ], [ 27.463663, 61.613 ], [ 27.492355, 61.633446 ], [ 27.498877, 61.693605 ], [ 27.470436, 61.719412 ], [ 27.399101, 61.769959 ] ], [ [ 27.242965, 61.641111 ], [ 27.229796, 61.650706 ], [ 27.19398, 61.661022 ], [ 27.16986, 61.673049 ], [ 27.162925, 61.689008 ], [ 27.195534, 61.700215 ], [ 27.201804, 61.703545 ], [ 27.214641, 61.711695 ], [ 27.242749, 61.715871 ], [ 27.27517, 61.724391 ], [ 27.280991, 61.730604 ], [ 27.2984, 61.739779 ], [ 27.330012, 61.736653 ], [ 27.339821, 61.726268 ], [ 27.353754, 61.714487 ], [ 27.366645, 61.703077 ], [ 27.290513, 61.65567 ], [ 27.288788, 61.651716 ], [ 27.286929, 61.642382 ], [ 27.26368, 61.64062 ], [ 27.242965, 61.641111 ] ] ] } },
{ "type": "Feature", "properties": { "Zone": "A" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 27.286929, 61.642382 ], [ 27.288788, 61.651716 ], [ 27.290513, 61.65567 ], [ 27.366645, 61.703077 ], [ 27.353754, 61.714487 ], [ 27.339821, 61.726268 ], [ 27.330012, 61.736653 ], [ 27.2984, 61.739779 ], [ 27.280991, 61.730604 ], [ 27.27517, 61.724391 ], [ 27.242749, 61.715871 ], [ 27.214641, 61.711695 ], [ 27.201804, 61.703545 ], [ 27.195534, 61.700215 ], [ 27.162925, 61.689008 ], [ 27.16986, 61.673049 ], [ 27.19398, 61.661022 ], [ 27.229796, 61.650706 ], [ 27.242965, 61.641111 ], [ 27.26368, 61.64062 ], [ 27.286929, 61.642382 ] ] ] } },
{ "type": "Feature", "properties": { "Zone": "E" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 27.16483, 61.399915 ], [ 27.231194, 61.316009 ], [ 27.29699, 61.29757 ], [ 27.435214, 61.302733 ], [ 27.485196, 61.308565 ], [ 27.672971, 61.337761 ], [ 27.784317, 61.372238 ], [ 27.909883, 61.424067 ], [ 27.966729, 61.51782 ], [ 27.991316, 61.591942 ], [ 27.999329, 61.634364 ], [ 27.992807, 61.813707 ], [ 27.976987, 61.894681 ], [ 27.96539, 61.908609 ], [ 27.905544, 61.93818 ], [ 27.802714, 61.993265 ], [ 27.693587, 62.023297 ], [ 27.642679, 62.035094 ], [ 27.590092, 62.0372 ], [ 27.540631, 62.037259 ], [ 27.379518, 62.090598 ], [ 27.325341, 62.099477 ], [ 27.245921, 62.121844 ], [ 27.113239, 62.114635 ], [ 27.032068, 62.112341 ], [ 26.922779, 62.092944 ], [ 26.72435, 62.046546 ], [ 26.641273, 62.006672 ], [ 26.497417, 61.919935 ], [ 26.463156, 61.864433 ], [ 26.446348, 61.821454 ], [ 26.450822, 61.734718 ], [ 26.440095, 61.642171 ], [ 26.674328, 61.583893 ], [ 26.637842, 61.623509 ], [ 26.647086, 61.696544 ], [ 26.643843, 61.772733 ], [ 26.678769, 61.825157 ], [ 26.762735, 61.872752 ], [ 26.885786, 61.930031 ], [ 27.096315, 61.967763 ], [ 27.218738, 61.971326 ], [ 27.409567, 61.964791 ], [ 27.651842, 61.925301 ], [ 27.735071, 61.867759 ], [ 27.859263, 61.753629 ], [ 27.826942, 61.548337 ], [ 27.668982, 61.45313 ], [ 27.522745, 61.420859 ], [ 27.379967, 61.385358 ], [ 27.202262, 61.391165 ], [ 27.202192, 61.391278 ], [ 27.16483, 61.399915 ] ] ] } },
{ "type": "Feature", "properties": { "Zone": "F" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 27.231194, 61.316009 ], [ 27.318672, 61.202729 ], [ 27.433983, 61.242795 ], [ 27.739608, 61.307469 ], [ 27.82192, 61.326035 ], [ 27.981317, 61.355444 ], [ 28.098763, 61.387543 ], [ 28.141619, 61.520176 ], [ 28.161394, 61.577417 ], [ 28.169627, 61.593105 ], [ 28.219504, 61.680775 ], [ 28.11669, 61.836502 ], [ 27.96539, 61.908609 ], [ 27.976987, 61.894681 ], [ 27.992807, 61.813707 ], [ 27.999329, 61.634364 ], [ 27.991316, 61.591942 ], [ 27.966729, 61.51782 ], [ 27.909883, 61.424067 ], [ 27.784317, 61.372238 ], [ 27.672971, 61.337761 ], [ 27.485196, 61.308565 ], [ 27.435214, 61.302733 ], [ 27.29699, 61.29757 ], [ 27.231194, 61.316009 ] ] ] } },
{ "type": "Feature", "properties": { "Zone": "G" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 28.169627, 61.593105 ], [ 28.161394, 61.577417 ], [ 28.141619, 61.520176 ], [ 28.206412, 61.515596 ], [ 28.233764, 61.588519 ], [ 28.169627, 61.593105 ] ] ] } }
]
}
1 change: 1 addition & 0 deletions middleware/zones.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function setup(prefix) {
Joensuu: require('./config/joensuu_zone_areas_20250402.json'),
Vaasa: require('./config/vaasa_zone_lines_20231220.json'),
Kotka: require('./config/kotka_zone_areas_20250114.json'),
Mikkeli: require('./config/mikkeli_zone_areas_20260122.json')
};

// precompute bounding boxes to optimize test speed
Expand Down