Changeset 35978 in osm for applications/editors/josm/plugins/public_transport
- Timestamp:
- 2022-06-15T20:10:48+02:00 (2 years ago)
- Location:
- applications/editors/josm/plugins/public_transport
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/build.xml
r35221 r35978 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 5502"/>7 <property name="plugin.main.version" value="18494"/> 8 8 9 9 <property name="plugin.author" value="Roland M. Olbricht"/> -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/PublicTransportAStar.java
r34718 r35978 70 70 double totalDistance = 0; 71 71 for (int i = min; i < max; ++i) { 72 totalDistance += way.getNode(i).g etCoor().greatCircleDistance(way.getNode(i + 1).getCoor());72 totalDistance += way.getNode(i).greatCircleDistance(way.getNode(i + 1)); 73 73 } 74 74 return totalDistance; … … 138 138 public double estimateDistance(AStarAlgorithm.Vertex vertex) { 139 139 NodeVertex nodeVertex = (NodeVertex) vertex; 140 return ((NodeVertex) super.end).node .getCoor()141 .greatCircleDistance(nodeVertex.node .getCoor());140 return ((NodeVertex) super.end).node 141 .greatCircleDistance(nodeVertex.node); 142 142 } 143 143 } -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/commands/TrackSuggestStopsCommand.java
r35219 r35978 9 9 10 10 import org.openstreetmap.josm.command.Command; 11 import org.openstreetmap.josm.data.coor.ILatLon; 11 12 import org.openstreetmap.josm.data.coor.LatLon; 12 13 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; … … 121 122 if (j < k) { 122 123 double dist = 0; 123 LatLon latLonI = wayPoints.elementAt(i).getCoor();124 ILatLon latLonI = wayPoints.elementAt(i).getCoor(); 124 125 for (int l = j; l < k; ++l) { 125 double distL = latLonI.greatCircleDistance(wayPoints.elementAt(l) .getCoor());126 double distL = latLonI.greatCircleDistance(wayPoints.elementAt(l)); 126 127 if (distL > dist) 127 128 dist = distL; … … 148 149 149 150 LatLon latLon = wayPoints.elementAt(i).getCoor(); 150 if ((lastStopCoor != null) && (lastStopCoor.greatCircleDistance( latLon) < threshold))151 if ((lastStopCoor != null) && (lastStopCoor.greatCircleDistance((ILatLon) latLon) < threshold)) 151 152 continue; 152 153 -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/models/GTFSStopTableModel.java
r34718 r35978 180 180 while (iter.hasNext()) { 181 181 Node node = iter.next(); 182 if (coor.greatCircleDistance(node .getCoor()) < 1000) {182 if (coor.greatCircleDistance(node) < 1000) { 183 183 nearBusStop = true; 184 184 break;
Note:
See TracChangeset
for help on using the changeset viewer.