Changeset 3190 in josm for trunk/src/org/openstreetmap/josm/corrector
- Timestamp:
- 2010-04-16T22:29:40+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
r3083 r3190 66 66 new PrefixSuffixSwitcher("left", "right"), 67 67 new PrefixSuffixSwitcher("forward", "backward"), 68 new PrefixSuffixSwitcher("forwards", "backwards") 68 new PrefixSuffixSwitcher("forwards", "backwards"), 69 new PrefixSuffixSwitcher("up", "down"), 69 70 }; 70 71 71 72 private static ArrayList<String> reversibleTags = new ArrayList<String>( 72 Arrays.asList(new String[] {"oneway", "incline"})); 73 Arrays.asList(new String[] {"oneway", "incline", "direction"})); 73 74 74 75 public static boolean isReversible(Way way) { … … 120 121 newValue = OsmUtils.reverseval; 121 122 } 122 } else if (key.equals("incline")) { 123 } else if (key.equals("incline") || key.equals("direction")) { 123 124 PrefixSuffixSwitcher switcher = new PrefixSuffixSwitcher("up", "down"); 124 125 newValue = switcher.apply(value); … … 130 131 newKey = prefixSuffixSwitcher.apply(key); 131 132 if (!key.equals(newKey)) { 133 break; 134 } 135 newValue = prefixSuffixSwitcher.apply(value); 136 if (!value.equals(newValue)) { 132 137 break; 133 138 }
Note:
See TracChangeset
for help on using the changeset viewer.