Skip to content

Instantly share code, notes, and snippets.

@njh
Created February 9, 2023 11:07
Show Gist options
  • Save njh/0ddf4bf616dea1da11df08c8f1aa1465 to your computer and use it in GitHub Desktop.
Save njh/0ddf4bf616dea1da11df08c8f1aa1465 to your computer and use it in GitHub Desktop.
Query for all Level 6 Administrative Boundaries in the UK
/*
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