Below is one example of an Overpass Turbo query that locates “lakes” (here defined as features tagged with
natural=water and
water=lake)
within 50 km of London’s center (using London’s approximate coordinates 51.5074, –0.1278) and (using an advanced “convert” trick) outputs only those whose computed polygonal area is at least 1,000 m².
Note:
Filtering by polygon area requires using the “convert … to tag(area = area())” and “foreach … if() …” constructs. (This technique works when your Overpass instance supports the conversion functions.) If you run into problems you may try a simpler query without the area filtering and then filter the results externally.
Copy and paste the following code into Overpass Turbo:
overpass
[out:json][timeout:180];
// Search for lakes (features with natural=water and water=lake)
// within 50 km of London (51.5074, -0.1278).
(
way["natural"="water"]["water"="lake"](around:50000,51.5074,-0.1278);
relation["natural"="water"]["water"="lake"](around:50000,51.5074,-0.1278);
) -> .lakes;
// For each candidate lake, convert its geometry to a tag "area" (in square metres)
// and then output only those whose computed area is at least 1000 m².
.lakes
foreach -> .lake (
convert .lake to tag(area = area());
if (t["area"] >= 1000) {
out body;
}
);
How This Query Works
Area Search:
The query first looks for ways and relations with tags "natural"="water" and "water"="lake" within a 50 km radius of London (using the coordinate point 51.5074, –0.1278).
Geometry Conversion and Area Calculation:
In the foreach block, each object is “converted” so that a new tag area is computed from its geometry (in square metres).
Filtering by Area:
Only those objects for which the computed area is at least 1000 are output.
If you want to adjust the definition of “lake” (for example, sometimes larger water‐bodies are tagged only with natural=water) or the area or search radius, simply change the tag filters or parameters accordingly.