diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/StubEndsTest.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/StubEndsTest.java index ca1cbc2..2b01ebd 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/StubEndsTest.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/StubEndsTest.java @@ -25,7 +25,7 @@ import org.openstreetmap.josm.spi.preferences.Config; public class StubEndsTest extends Test { private static final String HIGHWAY = "highway"; private static final List BAD_HIGHWAYS = Arrays.asList("services", "rest_area"); - private double max_length = Config.getPref().getDouble(MapWithAIPlugin.NAME + ".stubendlength", 10); + private double max_length = Config.getPref().getDouble(MapWithAIPlugin.NAME + ".stubendlength", 5); public StubEndsTest() { super(tr("Stub Ends ({0})", MapWithAIPlugin.NAME), tr("Look for short ends on ways")); @@ -101,6 +101,9 @@ public class StubEndsTest extends Test { private static double distanceToConnection(Way way, List nodesToConnection, List nodeOrder) { double distance = 0; Node previous = nodeOrder.get(0); + if (previous.hasTag("noexit")) { + return Double.NaN; + } // isOutsideDownloadArea returns false if new or undeleted as well if (!previous.isOutsideDownloadArea()) { for (Node node : nodeOrder) {