geometalab / osmaxx

OpenStreetMap Arbitrary Excerpt Export - Get the OpenStreetMap data you want in the file format you need
http://osmaxx.hsr.ch/
MIT License
26 stars 3 forks source link

Add value cleansing of opening_hours #799

Open sfkeller opened 7 years ago

sfkeller commented 7 years ago

Values of key "opening hours" - if available in OSM - sometimes are not valid, e.g. with too many spaces, obvious mistakes, like 'So' instead of 'Su', or ';' instead of '/'. This cleansing could be done with a user defined function (plg/pgsql).

das-g commented 7 years ago

What's the expected behavior of the "cleansing"? Simply omitting invalid opening hour strings? Trying to guess what the author meant and correcting the string accordingly? The latter is a Pandora's box, even already specification-wise.