ltog / osmi-addresses

Calculates the Address view of the OSM Inspector
Boost Software License 1.0
11 stars 4 forks source link

List of regional rules for addr:housenumber=... #93

Open ltog opened 8 years ago

ltog commented 8 years ago

This issue's purpose is to collect regional rules for valid characters in addr:housenumber=...

Regular expressions are prefered but examples are also fine.

ltog commented 8 years ago

Hungary

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])?)?
ltog commented 8 years ago

Switzerland

This is based on my own experience:

[1-9][0-9]{0,3}( ?[a-zA-Z])?
imagoiq commented 2 years ago

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.