Changeset 33468 in osm for applications/editors/josm/plugins
- Timestamp:
- 2017-07-25T14:20:24+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/data/PTStop.java
r33453 r33468 139 139 } 140 140 141 // Look for a stop position within 0.00 2 degrees (around 100 m) of this141 // Look for a stop position within 0.001 degrees (around 50 m) of this 142 142 // platform: 143 143 144 144 LatLon platformCenter = platform.getBBox().getCenter(); 145 Double ax = platformCenter.getX() - 0.00 2;146 Double bx = platformCenter.getX() + 0.00 2;147 Double ay = platformCenter.getY() - 0.00 2;148 Double by = platformCenter.getY() + 0.00 2;145 Double ax = platformCenter.getX() - 0.001; 146 Double bx = platformCenter.getX() + 0.001; 147 Double ay = platformCenter.getY() - 0.001; 148 Double by = platformCenter.getY() + 0.001; 149 149 BBox platformBBox = new BBox(ax, ay, bx, by); 150 150 … … 155 155 if (platformBBox.bounds(currentNode.getBBox()) 156 156 && currentNode.hasTag("public_transport", "stop_position") 157 && (platName != null && nodeName != null) 158 && platName.equals(nodeName)) { 157 && (platName == null 158 || nodeName == null 159 || platName.equals(nodeName))) { 159 160 potentialStopPositions.add(currentNode); 160 161 }
Note:
See TracChangeset
for help on using the changeset viewer.