Searching by tag - with or without overpass turbo

Hi all,

Apologies as this is a super newbie question - no doubt it has been answered before, but I don’t actually know how to frame my question to find the result.

I’m trying to search OSM for playgrounds; I found that I can search with overpass turbo for the tag ‘leisure=playground’ using

node
  [leisure=playground]
  ({{bbox}});
out;

This successfully highlights some playgrounds in my search area, but doesn’t highlight them all (i.e. I can identify playgrounds on OSM that are tagged with ‘leisure=playground’ within my search area that are not being highlighted by my overpass turbo search).

What am I missing / getting wrong?

Playgrounds can be tagged as nodes, ways, or relations, so looking for nodes only is very likely to miss many playgrounds (those that have been mapped as an area rather than a point).

A quick way to get all these is to change “node” in your query to “nwr” which is a shortcut for all three types.

5 Likes

Plus to see ‘way’ or ‘relation’ type elements, add geom to the out statement so Overpass can draw them.

nwr
  [leisure=playground]
  ({{bbox}});
out geom;
3 Likes

Overpass Turbo has a “wizard” function in which you can simply enter leisure=playground and it’ll automatically make a query that works (requesting nodes, ways, and relations with nwr, out geom, etc)

1 Like

Thank you all so much. I’ll tag a comment as a solution once I’ve tried each out.

Hopefully one day I can be as knowledgeable and helpful.