map-collection-dist icon indicating copy to clipboard operation
map-collection-dist copied to clipboard

Wrong Statisictial Regions for Slovenia

Open jedrzejruta opened this issue 1 year ago • 1 comments

For Statistical Regions of Slovenia, the Zasavska region is returned twice and Obalno-kraška is missing from the data. Also, the official name for the Notranjsko-kraška region is Primorsko-notranjska.

Source: https://geopedia.world/?locale=en#T276_L2459_x1659956.8453929496_y5763385.480937797_s9_b2345

Demo: https://jsfiddle.net/BlackLabel/schL2u68/

jedrzejruta avatar Nov 29 '24 12:11 jedrzejruta

Internal notes:

  • some ? in the dataLabels and map data, OSM source switch should fix this -"admin_level"="8" gives the needed admin division
[out:json][timeout:125];
// fetch area “Slovenia” to search in
{{geocodeArea:Slovenia}}->.searchArea;
// gather results
(
  nwr["admin_level"="8"]["ISO3166-2"](area.searchArea);
);
// print results
out body;
>;
out skel qt;

KacperMadej avatar Dec 04 '24 14:12 KacperMadej