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
Comments
In the USA it’s
{addr:housenumber} {addr:street} #{addr:unit}
Eg 1456 First Street #4
Or
{addr:house number} {addr:street} Unit {addr:unit}
Eg 1456 First Street Unit A
Or rarely
{addr:housenumber} {addr:unit} {addr:street}
The last is usually only used if the unit is a letter or faction, eg 1459A
Fifth Street
Or 1459 1/2 Fifth Street
We could try adding a divider like a dash?
|
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 |
In Germany there is no uniform standard for units. |
Maybe before we go to far, which countries would 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... |
We do not support rendering in different ways depending on region. |
addr:unit was rendered in https://github.com/gravitystorm/openstreetmap-carto/pull/2494/files
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}"
.The text was updated successfully, but these errors were encountered: