Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ltog opened this issue Feb 10, 2016 · 3 comments
Open

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

ltog opened this issue Feb 10, 2016 · 3 comments

Comments

@ltog
Copy link
Owner

ltog commented Feb 10, 2016

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
Copy link
Owner Author

ltog commented Feb 10, 2016

Hungary

From #84 (comment) (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
Copy link
Owner Author

ltog commented Feb 10, 2016

Switzerland

This is based on my own experience:

[1-9][0-9]{0,3}( ?[a-zA-Z])?

@imagoiq
Copy link

imagoiq commented May 15, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants