Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

9481.patch (1.4 KB ) - added by simon04 11 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by aceman, 11 years ago

Component: CoreCore mappaint
Priority: normalminor
Type: defectenhancement
Version: latest

comment:2 by Don-vip, 11 years ago

Milestone: 14.01

comment:3 by simon04, 11 years ago

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. ;-)

Last edited 11 years ago by simon04 (previous) (diff)

by simon04, 11 years ago

Attachment: 9481.patch added

comment:4 by aceman, 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 simon04, 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 aceman, 11 years ago

Yeah, if that order is universal for all objects then yes, it is a question :)

comment:7 by simon04, 11 years ago

Owner: changed from team to aceman
Status: newneedinfo

Please try to formulate a somewhat generic rule, or close this ticket. :-)

comment:8 by simon04, 11 years ago

Resolution: needinfo
Status: needinfoclosed

comment:9 by Klumbumbus, 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain aceman.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.