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

addr:unit localization #3568

Open
andrewharvey opened this issue Dec 14, 2018 · 6 comments
Open

addr:unit localization #3568

andrewharvey opened this issue Dec 14, 2018 · 6 comments

Comments

@andrewharvey
Copy link

addr:unit was rendered in https://github.com/gravitystorm/openstreetmap-carto/pull/2494/files

selection_999 165

Buildings are labelled "{addr:housenumber} {addr:unit}" in some parts of the world this is very confusing and misleading. Speaking for Australia it's generally going to be
"{addr:unit}/{addr:housenumber}" or "{addr:unit} {addr:housenumber}".

@kocio-pl kocio-pl added this to the Bugs and improvements milestone Dec 14, 2018
@jeisenbe
Copy link
Collaborator

jeisenbe commented Dec 14, 2018 via email

@jeisenbe
Copy link
Collaborator

Perhaps the problem is also that the housenumber and the unit number are in an identical text style?

@andrewharvey
Copy link
Author

Perhaps the problem is also that the housenumber and the unit number are in an identical text style?

I'm not sure you can do much with text styling alone apart from maybe italics for the unit? Though that's still not clear to me. For Australia at least and probably many other places simply formatting as {unit}/{housenumber} would be clear even with the same text style..

@HolgerJeromin
Copy link
Contributor

In Germany there is no uniform standard for units.
But there are some (official full featured) house numbers with includes x/y style (the place got x a few years ago, but there were more buildings built):
https://www.openstreetmap.org/way/285463790#map=19/48.40511/9.95411
But as there is no unit involved here this is probably no show blocker for rendering x/y for units.

@andrewharvey
Copy link
Author

Maybe before we go to far, which countries would unit/housenumber be correct and which countries would the current housenumber unit correct? In the short term maybe we can just change the default if one group is significantly larger.

I couldn't see any localisation support in the code base already to support different styles per region. I was tempted to do a join on country admin boundary polygons from every address point/polygon to assign the country code to the address and then allow the style to use a country code lookup, but not sure if that would make it too slow...

@pnorman
Copy link
Collaborator

pnorman commented Mar 23, 2021

We do not support rendering in different ways depending on region.

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

No branches or pull requests

5 participants