]> git.openstreetmap.org Git - nominatim.git/commitdiff
adjust address ranks for Spain
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Sep 2021 15:37:31 +0000 (17:37 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Sep 2021 16:39:44 +0000 (18:39 +0200)
Adjusts levels for boundaries according to the list on
https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative

* no admin_level 5, so drop that from addresses
* admin_level 6 has the province
* admin_level 7 has the county when it exists

Also reranks place=province so that it matches up with
admin_level 6 and introduces place=civil_parish which
is used as a place node for some admin_level=9 boundaries
in Galicia.

settings/address-levels.json

index 26ee6e708fd7438a44b2597f3c4eccb417e5ce3c..09ba0d28e526c085027170a741c4a55fee8d8afc 100644 (file)
           "administrative10" : 16
       }
   }
+},
+{ "countries" : ["es"],
+  "tags" : {
+      "place" : {
+          "province" : 10,
+          "civil_parish" : 18
+      },
+      "boundary" : {
+          "administrative5" : [10, 0],
+          "administrative6" : 10,
+          "administrative7" : 12,
+          "administrative10" : 22
+      }
+  }
 }
 ]