From 38e67f5013cd892a89a4c8397d78ce3359f0ac59 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 25 Jul 2016 16:02:00 -0400 Subject: [PATCH] [boundaries] More fun with mapping UK admin boundaries. Non-metroplitan counties and non-metropolitan districts map to state_district. admin_level=6 maps to state district except for London where it's the city minus City of London. admin_level=8 (e.g. Manchester) maps to city except in London where it maps to city_district. admin_level=10 is suburb unless designation=civil_parish, in which case it's treated as a city boundary (individual towns/villages may be city or suburb depending on their place tag). Just complicated enough to be valid UK law :-). --- resources/boundaries/osm/gb.yaml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/resources/boundaries/osm/gb.yaml b/resources/boundaries/osm/gb.yaml index e7b6ed7a..e6a08976 100644 --- a/resources/boundaries/osm/gb.yaml +++ b/resources/boundaries/osm/gb.yaml @@ -1,11 +1,24 @@ --- - admin_level: - "2": "country" - "4": "country_region" - "5": "state" - "6": "city" - "8": "city_district" - "10": "suburb" - designation: - non_metropolitan_county: "state_district" + admin_level: + "2": "country" + "4": "country_region" + "5": "state" + "6": "state_district" + "8": "city" + "10": "suburb" + designation: + non_metropolitan_county: "state_district" + non_metropolitan_district: "state_district" + unitary_authority: "state_district" + civil_parish: "city" + overrides: + id: + relation: + # London + "65606": "city" + contained_by: + relation: + "65606": + admin_level: + "8": "city_district" \ No newline at end of file