Changeset 35978 in osm for applications/editors/josm/plugins/FixAddresses
- Timestamp:
- 2022-06-15T20:10:48+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/build.xml
r34511 r35978 4 4 <property name="commit.message" value="[josm_fixadresses]: Fixes #josm8336"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4153"/>6 <property name="plugin.main.version" value="18494"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/GuessedValueHandler.java
r34880 r35978 162 162 163 163 if (n.hasKey(tag)) { 164 double dist = n.g etCoor().greatCircleDistance(aNode.getCoor());164 double dist = n.greatCircleDistance(aNode.getCoor()); 165 165 if (dist < minDist && dist < maxDist) { 166 166 minDist = dist; -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OsmUtils.java
r33718 r35978 6 6 7 7 import org.openstreetmap.josm.data.Bounds; 8 import org.openstreetmap.josm.data.coor.ILatLon; 8 9 import org.openstreetmap.josm.data.coor.LatLon; 9 10 import org.openstreetmap.josm.data.osm.Node; … … 45 46 46 47 for (Pair<Node, Node> pair : x) { 47 LatLon ap = pair.a.getCoor();48 LatLon bp = pair.b.getCoor();48 ILatLon ap = pair.a; 49 ILatLon bp = pair.b; 49 50 50 51 double dist = findMinimum(ap, bp, coor); … … 64 65 * @return the double the minimum distance in m of the way and the node 65 66 */ 66 private static double findMinimum( LatLon a, LatLon b,LatLon c) {67 private static double findMinimum(ILatLon a, ILatLon b, ILatLon c) { 67 68 CheckParameterUtil.ensureParameterNotNull(c, "c"); 68 69 CheckParameterUtil.ensureParameterNotNull(b, "b");
Note:
See TracChangeset
for help on using the changeset viewer.