Overpass – combine nodes if they are within X meters?

Hey. Please let me know if there’s somewhere else I should go for asking questions about Overpass.

I would like to find all nodes of a specific type within a bounding box, but with one twist from normal: If some nodes are very close to each other (say for example within 30 meters) they should be combined into one. The rest of the nodes should show as normal.

Is this possible? Thanks!

A tool to get data from OSM:

https://wiki.openstreetmap.org/wiki/Overpass_API
https://wiki.openstreetmap.org/wiki/Overpass_turbo
https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example

I’m not sure if that is possible. You can definitely find something within a given distance of something else:

https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Relative_to_other_elements_.28around.29
https://www.openstreetmap.org/user/mmd/diary/42055

Maybe that helps!