Created
February 9, 2023 11:07
-
-
Save njh/0ddf4bf616dea1da11df08c8f1aa1465 to your computer and use it in GitHub Desktop.
Query for all Level 6 Administrative Boundaries in the UK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Query for all Level 6 Administrative Boundaries in the UK | |
England: Two-tier non-metropolitan counties, Metropolitan counties, Unitary authorities | |
Scotland: council areas | |
Wales: principal areas | |
*/ | |
[out:json][timeout:60]; | |
// Get the boundary of the United Kingdom | |
area["ISO3166-1"="GB"]->.boundaryarea; | |
( | |
// nwr is short for Node, Way, Relation | |
nwr["admin_level"="6"]["boundary"="administrative"]["wikidata"]["type"="boundary"](area.boundaryarea); | |
); | |
// Output IDs and Tags | |
out tags; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment