Modify

Opened 3 years ago

Closed 7 weeks ago

#21108 closed enhancement (duplicate)

description should be a source for naming relations

Reported by: stefanct Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Having proper strings to refer to relations within the GUI is very important. In many cases it is so important that we have given them invented names so that we could deal with them easier (route relations that have a name value including references, start and destination places, or any additional descriptive properties). Fortunately, we try to get rid of this name misuse and put them to better suitable tags but this often makes it harder to identify them in JOSM.

I have not studied the source in detail but I think I have found the place where the names are determined (or the tags to look at when generating the names to be precise:

DEFAULT_NAMING_TAGS_FOR_RELATIONS at https://github.com/openstreetmap/josm/blob/597cab135f3dad3569b1c273162910a0af88bb8e/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java#L93

I propose to add the "description" key right after name or after ref - there are arguments for either. Ideally ref would be used, if there is no other relation with the same ref, i.e., if it is unique, and the description otherwise IMHO - but checking for uniqueness can quickly take some time. ;)

8% of route relations have a description key. I tried to determine how many of them don't have name and/or ref but overpassturbo times out... in any case I think it is widespread enough to be useful in JOSM and I am missing it.

Attachments (0)

Change History (2)

comment:1 by skyper, 3 years ago

See also name_template. Some could be added to defaultpresets.

comment:2 by taylor.smock, 7 weeks ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #21046.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.