Useful combination

From OpenStreetMap Wiki
Jump to navigation Jump to search

Useful combination is a term which is often used on tag description wiki articles either in the body text or in their right-hand info boxes. There some options to get detail information about such kind of statistics:

  1. Using the Taginfo database
  2. Using a Overpass turbo query

Examples: Searching of Useful combination data for information=map (by the Taginfo database) / for water_source=pond (by a Overpass turbo query)

  1. Taginfo database for information=map: https://taginfo.openstreetmap.org/tags/information=map#combinations
  2. Overpass turbo query for water_source=pond: https://overpass-turbo.eu/s/1Crl [1]

try it yourself in overpass-turbo
[out:csv(cnt,key,val)];
nwr[water_source=pond];
for ->.per_key(keys())
{
   ( make info cnt=per_key.count(nwr),key=per_key.val,val="*";
     .result;)->.result;
   for .per_key(t[per_key.val])
   {
     ( make info cnt=count(nwr),key=per_key.val,val=_.val;
       .result;)->.result;
   }
}
for .result(1000000 - t["cnt"])
{
   out;
}

References

  1. drolbr: Taginfo alternative. Community Forum, 2023-10-25 online