In Overpass search, how to prevent child nodes "inheriting" parent properties?

I am running a search to find named objects, like this:

[out:csv(::id,::type, ::lat,::lon, name, "addr:city"; true; ",")]
[date:"2023-01-01T00:00:00"];
nwr[sport=climbing] ["name"~"Direct"] (37.7,-122.5,37.8,-122.3);
(._;>;);
out center;

and the output looks like this:

id,type,lat,lon,name,addr:city
4901432254,node,37.7653383,-122.4373028,
4901432255,node,37.7653393,-122.4372884,
4901432256,node,37.7653488,-122.4373064,
498803172,way,37.7653435,-122.4372974,Beaver Street Direct,

so first 3 nodes do not have name by themselves, as I understand they are found only because they are part of the 498803172 object that does matches the filter. Is there any way to exclude them from the output?

1 post - 1 participant

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/in-overpass-search-how-to-prevent-child-nodes-inheriting-parent-properties/106313