Skip to content

Instantly share code, notes, and snippets.

@gitfvb
Last active May 18, 2023 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitfvb/80119153374cb37581897ce5f25f3819 to your computer and use it in GitHub Desktop.
Save gitfvb/80119153374cb37581897ce5f25f3819 to your computer and use it in GitHub Desktop.
Overpass Turbo queries with http://overpass-turbo.eu/
area["name"="Aachen"][boundary=administrative]->.myarea;
rel(area.myarea)["boundary"="postal_code"];
out geom;
/* all postal codes in Austria */
area["name:en"="Austria"][boundary=administrative]->.myarea;
rel(area.myarea)[postal_area~".*"];
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out;
/* all banks in aachen */
area["name"="Aachen"]->.boundaryarea;
(
nwr(area.boundaryarea)[amenity=bank];
);
out meta;
/* all postcodes in belgium */
area["name"="België / Belgique / Belgien"][boundary=administrative]->.myarea;
rel(area.myarea)["boundary"="postal_code"];
out geom;
/* all postal codes in nederlands */
area["name:de"="Niederlande"]->.myarea;
rel(area.myarea)[boundary=administrative][admin_level=10];
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out;
/* Get all boundaries around Rotterdam */
area[name="Rotterdam"];
(
node(area);
<;
) -> .a;
(
rel.a["boundary"="administrative"];
);
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out meta qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment