[josm-dev] composing display name for relations from operator ref name from via to

Paul Hartmann phaaurlt at googlemail.com
Sun Oct 16 00:06:15 BST 2011


On 10/15/2011 12:31 PM, Jo wrote:
> Hi,
> 
> I've been looking at
> http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
> 
> Now I'm going to propose something that may be completely ludicrous.
> I've been creating name tags which duplicate information from other
> tags - which is not so nice - in order to have the route relations
> sort nicely in the relation list.
> 
> Could the display name for the relation list be composed from (pseudo code):
> 
> operator + '/' + network + ' ' + ref + ' ' + from + ' - ' + via + ' - ' + to
> 
> Or is such a thing completely out of the question? I can try to come
> up with a patch myself, but I'd like to know first, if it even stands
> a chance of being accepted, before I start setting up a josm
> development environment. This is, of course, quite specific to public
> transportation routes.

Jiri added customizable name formatter in
http://josm.openstreetmap.de/changeset/4431

This may be just what you want. But I don't know how it works, there
seems to be no documentation or example.

Paul



More information about the josm-dev mailing list