From dff0eaf564da4b5831a1d1b7acb30571f0abbdfa Mon Sep 17 00:00:00 2001 From: DanielAgostinho <42416548+DanielAgostinho@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:22:37 +0000 Subject: [PATCH] Update RouteUtils.java added oneway test Added a condition in order to ignore "oneway" if it has "oneway:no" --- .../josm/plugins/pt_assistant/utils/RouteUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java b/src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java index 84386395..cde9e2ae 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java +++ b/src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java @@ -180,7 +180,7 @@ public static int isOnewayForPublicTransport(Way way) { if (!way.hasTag("busway", "lane") && !way.hasTag("busway", "opposite_lane") && !way.hasTag("busway:left", "lane") && !way.hasTag("busway:right", "lane") - && !way.hasTag("oneway:bus", "no") && !way.hasTag("oneway:psv", "no") + && !way.hasTag("oneway:bus", "no") && !way.hasTag("oneway","no") && !way.hasTag("oneway:psv", "no") && !way.hasTag("trolley_wire", "backward")) { if (OsmUtils.isReversed(way.get("oneway"))) {