Changeset 18197 in osm for applications


Ignore:
Timestamp:
2009-10-17T17:47:36+02:00 (15 years ago)
Author:
avar
Message:

Don't report nodes with duplicate names if they're
highway=bus_stop. It's common to have the same name for both stops on
each side of the road.

Location:
applications/editors/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/NodesWithSameName.java

    r18122 r18197  
    3636        String name = n.get("name");
    3737        String sign = n.get("traffic_sign");
    38         if (name == null || (sign != null && sign.equals("city_limit"))) return;
     38        String highway = n.get("highway");
     39        if (name == null
     40            || (sign != null && sign.equals("city_limit"))
     41            || (highway != null && highway.equals("bus_stop"))) {
     42            return;
     43        }
    3944
    4045        List<Node> nodes = namesToNodes.get(name);
Note: See TracChangeset for help on using the changeset viewer.