Skip to content

Instantly share code, notes, and snippets.

@stepps00
Created February 5, 2021 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stepps00/d5bcd25d0e1cf4807afbf15eb0831c0e to your computer and use it in GitHub Desktop.
Save stepps00/d5bcd25d0e1cf4807afbf15eb0831c0e to your computer and use it in GitHub Desktop.
overpass-turbo extract examples
Pull features at the admin_level of "7" in/around San Francisco
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“admin_level=10 in "San Francisco”
*/
[out:json][timeout:25];
// fetch area “San Francisco” to search in
{{geocodeArea:San Francisco}}->.searchArea;
// gather results
(
// query part for: “admin_level=7”
node["admin_level"="7"](area.searchArea);
way["admin_level"="7"](area.searchArea);
relation["admin_level"="7"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment