#9481 closed enhancement (needinfo)
show house number in addition to house name
Reported by: | aceman | Owned by: | aceman |
---|---|---|---|
Priority: | minor | Milestone: | 14.01 |
Component: | Core mappaint | Version: | latest |
Keywords: | Cc: |
Description
The "name complement" infrastructure from ticket #9447 could be used to show "addr:housenumber" in addition to "name".
This would be a help when debugging/numbering a series of houses on a street and checking proper house numbers. Also I've seen a renderer that shows houses like this.
Attachments (1)
Change History (10)
comment:1 by , 11 years ago
Component: | Core → Core mappaint |
---|---|
Priority: | normal → minor |
Type: | defect → enhancement |
Version: | → latest |
comment:2 by , 11 years ago
Milestone: | → 14.01 |
---|
by , 11 years ago
Attachment: | 9481.patch added |
---|
comment:4 by , 11 years ago
You can show it where-ever you would show "housenumber" in current code. But there are places where you show "name" instead, if available. You do this for e.g. buildings. I am not sure about POIs (e.g. shop/amenity). If the algorithm there is different, then it can be different also in this case.
comment:5 by , 11 years ago
Currently, the label is determined by the first set tag of "name:[lang]", "name", "int_name", "ref", "operator", "brand", "addr:housenumber"
(see trunk/src/org/openstreetmap/josm/gui/mappaint/LabelCompositionStrategy.java#L155). With #9447, "capacity"
is appended in parenthesis if set.
The question would be when to append the addr:housenumber
and when not.
comment:6 by , 11 years ago
Yeah, if that order is universal for all objects then yes, it is a question :)
comment:7 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Please try to formulate a somewhat generic rule, or close this ticket. :-)
comment:8 by , 11 years ago
Resolution: | → needinfo |
---|---|
Status: | needinfo → closed |
comment:9 by , 11 years ago
@aceman you can use the style Coloured Streets when you check housenumbers. It is optimized for checking adress data. It shows name and addr:housenumber at the same time for nodes and for areas as well.
For POI nodes with
addr:housenumber
, this will lead to strange labels: Think of a label "Cafe X (123)". Would that be better suited for a custom style (or, as an enhancement of an already existing address style)?Attaching a patch to store the work somewhere. ;-)