Open ltog opened 8 years ago
From https://github.com/ltog/osmi-addresses/issues/84#issuecomment-182150488 (with removed duplicates)
in Hungary the allowed characters can contains '/' and '-'
and sometimes spaces but this is very rare ..example
60 60 62/A 60/62 60/62/A 60/62A 60-62 60-62/A 60-62A
example reference: Hungarian Postal Service Company presentation 2014 - page 4 http://www.esrihu.hu/static/upload/site/esrihu-uc-2014-eloadasok/esrihu-uc-2014-magyar-posta.pdf
As a regex that would make something like:
[1-9][0-9]{0,4}([/- ][1-9][0-9]{0,4}(/?[A-Z])?)?
This is based on my own experience:
[1-9][0-9]{0,3}( ?[a-zA-Z])?
Hi, For Switzerland, I think the regex should be at least extended to :
[1-9][0-9]{0,3}( ?[a-zA-Z]{0,3})?
As in the French part, a housenumber can contain strings like "18bis" or "4ter". I'm not aware of the other parts of Switzerland, but this is a first step to enhance the regex.
This issue's purpose is to collect regional rules for valid characters in
addr:housenumber=...
Regular expressions are prefered but examples are also fine.