How to find nodes near a way

Hi

I’m trying to write an Overpass turbo script to find wind turbines 200m from the coastline but i’m having no luck,

So far I have:

[out:json][timeout:90];
// gather results
(
way[“natural”=“coastline”];
way(around:200)“generator:source”=“wind”;
);
// print results
out body;

;
out skel qt;

What am I doing wrong?

Welcome to the forum!
As your title suggests, you want to find nodes.
However, in your query you are searching for ways.

Try this query: Overpass-Turbo Query

[out:json][timeout:90];

// Find coastlines in view (bounding box)
way[natural=coastline]({{bbox}});

// Find nodes with generator:source=wind
node(around:200)["generator:source"="wind"];

// print results
out geom;

1 Like

Thanks, that worked!