[Overpass] How to find given objects within x km radius from lat+lon?

Hello,

Iā€™m not sure how to use Overpass to query OSM and find all the hotels within a 50km radius from a given location:

[out:json][timeout:25];

node[lat + lon];
node(around:50000)["tourism"="hotel"];

out center;

Thank you.

ā€“
Edit: Simpler than I thought :slight_smile:

[out:json][timeout:25];

node["tourism"="hotel"](around:50000,lat, lon);

out center;

What about hotels that are mapped as closed way (polygon) or even as a relation?

Your query is only for nodes, right?