This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Overpass API: find relations that completely encompass map area

0

I have an application that retrieves small areas of map data via the Overpass API to generate custom-rendered maps of interest. However, if the area of interest is completely inside certain relations (e.g. in one case, a multipolygon of natural = heath), this relation is not returned by the bbox query and therefore the landuse is not tagged appropriately. I understand that simple areas (closed ways) and named relations can be retrieved using an "is_in" query - but how can I retrieve unnamed relations such as the example above? Thanks!

asked 19 Oct '22, 19:59

ddixon's gravatar image

ddixon
11112
accept rate: 0%

1

Could you post the routine?

(19 Oct '22, 22:20) DaveF

My usual query is:

node(53.113093987353764,-4.054470062255859,53.11925273065562,-4.040318727493286);<;>;

I've also tried to union that with an is_in query (after extracting the nodes from the area):

is_in(53.115,-4.05);

Neither find this relation:

https://www.openstreetmap.org/relation/14644322

(20 Oct '22, 07:57) ddixon