Is possible to download in JOSM the enclosing polygons (aka covering areas) of a particular point?
What would be the easiest workflow, either using API or directly in JOSM?
is_in(50.73322,7.09828);
relation(pivot);
(._;>;);
out meta;
You can copy this into Overpass turbo and click Export and raw data directly from Overpass API. Then rename the downloaded file to data.osm and open in JOSM.
There is also a plugin called mirrored downlaod which allows to enter Overpass queries directly in JOSM, but I don’t know how it works.
I think the ‘tag’ is_in from OSM database and the ‘Query for areas’ is_in from Overpass API/Overpass QL are two different things. If I understand correctly I am interested in the Overpass query, not in the tag.
Yes very similar. The query (example) provides Nearby features and Enclosing features. Enclosing features are just what I am looking for.
I need now the last step to load the found objects into JOSM, as batch/automatic if possible. I could not do it when I tried to reproduce the method proposed by bastik. I could not export from Overpass to JOSM or run the Overpass Query from JOSM/File/Download with Overpass API.
If this is not possible at all, I would like to understand what is missing in order to open a clear feature request.
and indeed I have no usable result when running your short query in overpass-turbo … it gives back only a kind of raw data, and no data display on the map … when choosing the export feature to load the result in a running instance of JOSM with remote feature activated there, no daata is loaded in JOSM.
Looking in the raw data from overpass-turbo, it seems that all “areas” have an ID starting with 36… which is a sign for the internal number of areas in overpass-api.