I try to obtain all ways/nodes/relations with a special tag from OpenStreetMap. I use the following code to receive all hotels (in a small town in Austria):
//[out:csv(name, "addr:street", "addr:city")][timeout:25];
area
[boundary=administrative]
["name"="Fügen"];
out body;
// gather results
(
// query part for: “building=* and name=*”
node["tourism"="hotel"](area);
way["building"]["tourism"="hotel"](area);
relation["building"]["tourism"="hotel"](area);
);
// print results
out body;
You may access the result via Overpass. However, this result gives me only the nodes. Ways like #89729697 also having the tourism = hotel
tag are not returned.
How do I also query for the ways and relations having the tag I am looking for?