opening_hours statistics

Posted by ypid on 26 September 2014 in English (English). Last updated on 4 April 2015.

As I am looking forward to a “Wochenaufgabe” that involves the opening_hours tag, I saw the need for a statistical evaluation for that key. So I created one ;)

During development of the evaluation tool, I already wrote a JavaScript program which can go through all the values and show, how many can be evaluated, how many warnings occurred and how many values are equal to the prettified version that the evaluation tool generated. So I extended this script a bit to let it write that to a csv file. I installed a cron job which downloads the required data from the taginfo API on regular basis and evaluates it. I did not import history data. If anyone wants to do that, I would appreciate it. And finally, I created a nice (as I think) visualization based on the JavaScript library flot which you can check out here:

It shows the number of total values in the OSM database and the percentage of how many of those values can be parsed by opening_hours.js. You can also enable other layers of information if you want to.

So, lets push the percentage of the good values and the number of opening_hours to new highs ;) (I was running the script for a while before and the percentage of good values always stayed at 97 %.)

Comment from baditaflorin on 1 October 2014 at 15:45

Wow, this is realy nice, when i will do the tag info for Romania, i will definitely use it

Comment from HubMiner on 11 June 2019 at 20:52

Greetings! Looks like “opening_hours statistics” stopped updating in January 2019. Any chance of getting it back up?

Comment from ypid on 12 June 2019 at 20:47

@HubMiner Thanks for the hint. Fixed.

Login to leave a comment