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

render addr:flats same as addr:unit #3988

Closed
richlv opened this issue Dec 10, 2019 · 12 comments · Fixed by #4082
Closed

render addr:flats same as addr:unit #3988

richlv opened this issue Dec 10, 2019 · 12 comments · Fixed by #4082

Comments

@richlv
Copy link
Contributor

richlv commented Dec 10, 2019

#264 added rendering of addr:unit.
There are ~170 000 instances of addr:flats, and the usage is very similar to addr:unit.

It would be wonderful to render addr:flats on osm.org same as addr:unit - both to help with spotting mistakes or missing data, and to motivate surveying.

@jeisenbe
Copy link
Collaborator

This was included in issue #264 but that issue was closed by mistake when addr:unit was rendered. I think we can discuss this here instead

There were also 2 previous PR attempts which were closed because we did not yet have addr:flat in the rendering database: #605 and #1665

Also consider this comment: #1665 (comment)
“ Some things to consider when it comes time:
“what if all the addresses have a flat? Then housenumber/housename wouldn't appear at all. Is this a common situation?
“flat numbers shouldn't be a higher label placement priority than housenumbers. the right approach is probably to filter out flat numbers from the housenumber/housenamelayer, this way if there is a conflict between a nearby housenumber/housename and a flat number, the latter gets displayed.
“Should all three address layers be combined into one?”

@jeisenbe jeisenbe added this to the Bugs and improvements milestone Dec 10, 2019
@jeisenbe
Copy link
Collaborator

Also note that addr:flats is not identical to addr:unit - https://wiki.openstreetmap.org/wiki/Key:addr:flats
“ Use addr:flats=* for marking range of numbers of flats behind a door, for example, addr:flats=1-20. If there is gap in numeration, mark numbers and intervals with semicolon: addr:flats=3-7;10;14;16-18.”

@richlv
Copy link
Contributor Author

richlv commented Dec 13, 2019

Thank you for looking into this.
To clarify, this is about rendering addr:flats, not addr:flat - the latter is not documented and is used only 141 times.

I'd suggest to apply the exact same rendering rules for addr:flats as for addr:unit.
Simpler implementation, simpler maintenance.

@richlv
Copy link
Contributor Author

richlv commented Dec 13, 2019

Also seeking rendering of addr:flats in JOSM at https://josm.openstreetmap.de/ticket/18094 .

@jeisenbe
Copy link
Collaborator

@richlv would you be interested in submitting a pull request to address this issue? This would be relatively simple, since you could copy the code currently used to render addr:unit

@Adamant36
Copy link
Contributor

If @richlv isn't interested in doing a PR for it I'd be willing to.

@richlv
Copy link
Contributor Author

richlv commented Dec 20, 2019

I started looking at the code, but it might take me a bit longer, having never done this.
If you could submit a PR, I would be very grateful.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Jan 9, 2020

@Adamant36 do you want to submit a PR?

@Adamant36
Copy link
Contributor

Sure. I think I need to setup things again though. So it might take a few days.

@richlv
Copy link
Contributor Author

richlv commented Mar 16, 2020

Played around in #4082.
It adds rendering of addr:flats similar to addr:unit.

Not quite sure how useful is it to support all the combinations.
Taginfo said there are 747 instances of both addr:flats + addr:unit used (no idea how many of those have identical values or might have other data issues).
In Latvia, there were very few cases of both addr:housenumber and addr:flats, most were redundant/accidental tagging.

@jeisenbe
Copy link
Collaborator

Also see #3568

@jeisenbe
Copy link
Collaborator

See my comment on the related PR: #4082 (comment)

Most usage is in Russia, and most of the rest is in Belarus and Ukraine. This tag is very rare outside of the former USSR, and in other countries it is often used as a synonym for addr:unit.

Perhaps this tag is not widespread enough or used consistently enough to be supported by this global map style, at this time.

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

Successfully merging a pull request may close this issue.

3 participants