Previously, we asked about the closest object to some named reference place. We can also ask how far away that object is from the reference place. This is the first kind of distance query.
The fields in the form are essentially the same as previously with the difference that some fields are missing because a default value is assumed for them.
How far is it from Rotes Rathaus in Berlin to the next restaurant serving some vegetarian food?
✔ Completed.
dist(query(around(center(area(keyval('name','Berlin')),nwr(keyval('name','Rotes Rathaus'))),search(nwr(keyval('amenity','restaurant'),keyval('diet:vegetarian',or('only','yes')))),maxdist(DIST_INTOWN),topx(1)),qtype(latlong)))
❌ Not completed yet.
{% endif %}