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

Use address as backup label #6188

Closed
wants to merge 2 commits into from
Closed

Conversation

quincylvania
Copy link
Collaborator

@quincylvania quincylvania commented Apr 15, 2019

I'm not sure if this would close fully #1524 but it's at least a half step toward it.

Screen Shot 2019-04-15 at 3 15 12 PM

Screen Shot 2019-04-15 at 1 57 32 PM

@quincylvania quincylvania self-assigned this Apr 15, 2019
@quincylvania quincylvania added the map-renderer An issue with how things are rendered in the map label Apr 15, 2019
if (!name && entity.tags['addr:housenumber']) {
name = entity.tags['addr:housenumber'];
if (entity.tags['addr:street']) {
name += ' ' + entity.tags['addr:street'];
Copy link
Collaborator

@1ec5 1ec5 Apr 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some countries, the street name comes before the house number. Would it be feasible to use address-formats.json as a guide to how to format these addresses?

if (!name && entity.tags['addr:housenumber']) {
name = entity.tags['addr:housenumber'];
if (entity.tags['addr:street']) {
name += ' ' + entity.tags['addr:street'];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In areas where both buildings and addresses have been mapped or imported, there may still be freestanding address points for units within a multi-tenant building. Adding addr:unit to the display name would disambiguate these closely spaced points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
map-renderer An issue with how things are rendered in the map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants