Barrier=bollard but bollard=*, how many is it set?

When we take a time period, lets say last month.

barrier=bollard is set.

How many, %, is the bollard= set too?

Was asking myself, how can I figure this out.
Does it have to do with, what editor people are using.

1 Like

On the OSM Wiki page https://wiki.openstreetmap.org/wiki/Key:bollard ‘Tools for this tag’ section there are links to taginfo, Overpass Turbo, etc. that should answer your questions

I usually do 2 queries to get the information.

  1. Total number of barrier=bollard changes sind 2024-01-01:
    curl 'https://taginfo.openstreetmap.org/api/4/tag/chronology?key=barrier&value=bollard' \
    | jq '.data[] | select( .date >= "2024-01-01")' \
    | jq '[inputs | .ways + .nodes + .relations] | add'
    
  2. Total number of bollard=* changes sind 2024-01-01:
    curl 'https://taginfo.openstreetmap.org/api/4/key/chronology?key=bollard' \
    | jq '.data[] | select( .date >= "2024-01-01")' \
    | jq '[inputs | .ways + .nodes + .relations] | add'
    
    

This gives me 96,493 new barrier=bollard and 49,594 new bollard=*, resulting in 51.4% of all new bollards having their bollard type set in 2024[1].

For just the last month (everything between 19th October and today), the numbers are 4,286 out of 9,685 which is 44.25%


  1. Technically speaking, this is not 100% true, because the bollard=* might have been added to existing bollards, and not to the newly added ones, but I’m assuming this is good enough ↩︎

2 Likes

Thanks, I am not familiair with such query and where to use it.

This also could be supplementary set on a older barrier=bollard
It’s about first set.

My thought is when both are set at the same time, people leave it out because of the fact that two tags can be set and they think it is too much work and or not familair with the second tag.

JOSM preset can be overwhelming. To many clicks, common combinations, one should be able to put these more simply.


Many maybe use ALT-A -->key: ba (memory)–> gives barrier -->value: bo → gives bollard → OK but not set the second one.

I was thinking about how others do that.

Are there editors scoring higher or lower.