[josm-dev] Cardinal Directions Changes
Locke, Jonathan
jonathanl at telenav.com
Fri Dec 20 15:58:15 UTC 2013
Hi Paul!
I wish I knew how to be more specific… I guess I was wondering:
1. Are there any UI changes necessary? If so, what classes are involved?
2. Are there any parts of the code that are dependent on "forward" and "backward" which might break if they got "north" instead?
3. Are there any pieces of logic that process "forward" and "backward" that need to be extended to process cardinal directions? (like the relation sorting, although it sounds like that's not an issue)
I'm new to JOSM (and OSM to some extent), but my understanding is that Telenav has cardinal direction information for the US that we'd like to contribute to OSM. Although this probably makes little sense to Europeans who don't label highways this way, in the US where the highway system is more or less a grid, this is actually very useful information. All US highways have this information on sign posts and drivers use it all the time ("Take I-90 West") and in practice never confuse it with compass direction. Anyway, before the OSM community considers accepting this information, it has a quite reasonable expectation that JOSM should fully support cardinal directions so people can work with them. I'm just trying to figure out exactly what that support would entail so I can implement it.
Thanks,
Jon
Could someone give me a list of classes and/or methods that would need to
be changed to support this feature?
Could you be more specific? What are the features that you like to
implement? The tag correction when reversing way direction is already
implemented (ReverseWayTagCorrector.java). A starting point for the
relation sorting would be the package org.openstreetmap.josm.gui.dialogs.
relation.sort, however the current sorting algorithm is based on the
topology (how the ways are connected end to end) and relation roles are
ignored (if I recall correctly).
Paul
More information about the josm-dev
mailing list