List all 'elements' (whether they are amenities or related tags etc.)

In Wikimedia Commons I can use a tool called petscan to fetch all related information about a ‘super category’ 3. (for example, I can input the “Pablo Picasso” Category to get a complete list of all related images).

I’d love to do something similar for this page: Category:Amenities - OpenStreetMap Wiki

  1. It doesn’t give me a complete list of amenities (have to move on to the next page)
  2. I can’t see elements related to the amenities (to see something related to ping pong I had to navigate to here first Tag:amenity=table - OpenStreetMap Wiki)
    It would be great if I could aggregate all this essential data in one place, so that I can instantly identify the right names I need to use to search for things such as pianos and ping pong tables on overpass turbo etc.

Hope this makes sense, otherwise don’t hesitate to point something else, and thank you for taking the time to read all of this! :slight_smile:

  1. What is the purpose?
    A. Pick your own here Map features - OpenStreetMap Wiki
    B. Taginfo has API and can be filtered for those with wiki pages (but not status) https://taginfo.openstreetmap.org/api/4/tags/list?key=amenity (etc)
    C. The Wikidata-like database query service is currently broken Data items not fully imported ? · Issue #31 · Sophox/sophox · GitHub
    D. A workaround could be to use Wikidata itself, and as a measure of recognition
SELECT DISTINCT ?item ?itemLabel ?osm
WHERE 
{
   ?item wdt:P1282 ?osm;
   FILTER REGEX (?osm, "^Tag:amenity").
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} 

https://w.wiki/EBfv
2. Again, depends on your use
A. Run per-area overpass turbo
B. Seamless/dynamic/pannable/interactive map by category, but you have to customize to get everything https://openstreetbrowser.org/

1 Like

Wow, thank you so much! A great compendium of useful tools to achieve more or less the same objective.

I finally got exactly what I needed with
this:

https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fitem%20%3FitemLabel%20%3Fosm%20WHERE%20{ %20%20%3Fitem%20wdt%3AP1282%20%3Fosm. %20%20FILTER(REGEX(%3Fosm%2C%20"^Tag%3A*")) %20%20SERVICE%20wikibase%3Alabel%20{%20bd%3AserviceParam%20wikibase%3Alanguage%20"en".%20} }

I can search for and ‘browse’ practically all tags that way (don’t know if there are better / ‘proper’ ways to do this, but It Just Works XD).

Update

Alternatively,

wget https://taginf
o.openstreetmap.
org/api/4/keys/a
ll