Modify

Opened 3 years ago

Last modified 3 years ago

#21108 new enhancement

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 (1)

comment:1 by skyper, 3 years ago

See also name_template. Some could be added to defaultpresets.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to stefanct.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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