Changeset 33468 in osm for applications


Ignore:
Timestamp:
2017-07-25T14:20:24+02:00 (7 years ago)
Author:
giackserva
Message:

[pt_assistant] changed parameters for searching for potential stops

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  
    139139        }
    140140
    141         // Look for a stop position within 0.002 degrees (around 100 m) of this
     141        // Look for a stop position within 0.001 degrees (around 50 m) of this
    142142        // platform:
    143143
    144144        LatLon platformCenter = platform.getBBox().getCenter();
    145         Double ax = platformCenter.getX() - 0.002;
    146         Double bx = platformCenter.getX() + 0.002;
    147         Double ay = platformCenter.getY() - 0.002;
    148         Double by = platformCenter.getY() + 0.002;
     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;
    149149        BBox platformBBox = new BBox(ax, ay, bx, by);
    150150
     
    155155            if (platformBBox.bounds(currentNode.getBBox())
    156156                    && 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))) {
    159160                potentialStopPositions.add(currentNode);
    160161            }
Note: See TracChangeset for help on using the changeset viewer.