1

Given the coordinates (55.8141015,26.8400810) I need to check if this location is inside a cemetery. My initial idea was that I would easily make such request:

(
    way[landuse=cemetery]
    (around:1,55.8141015,26.8400810);
);
out geom meta;

If this query returns me the cemetery, then these coordinates are inside it. But the problem, to my surprise, was that the query starts to return cemeteries only after increasing radius to 20 meters. And it returns 2 cemeteries!

How can I make an exact query by coordinates and list all areas that enclose this location?

2

See https://github.com/drolbr/Overpass-API/issues/86 - you need to set up your own Overpass API instance and modify the area creation rules. That's the only solution available today.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.