User:Lemuria/Useful Overpass queries

From OpenGeofiction
< User:Lemuria
Revision as of 20:30, 8 January 2024 by Lemuria (talk | contribs) (Created page with "{| class="wikitable" ! Code ! What it does ! How to use it |- | <pre>[out:csv("name";false)]; (area["admin_level"]["ogf:id"="AR004"];)->.bndarea; way(area.bndarea)[highway][na...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Code What it does How to use it
[out:csv("name";false)];
(area["admin_level"]["ogf:id"="AR004"];)->.bndarea;
way(area.bndarea)[highway][name];
out;
Lists all highway=* ways in an area. Due to Overpass API's handling of areas, only countries are guaranteed to be supported. Replace AR004 with your territory's OGF ID.

Example: Lutang (AR004)