From 0dc70df409a7b307c270e573731ad5424845de70 Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Fri, 19 Jun 2020 17:55:53 +0300 Subject: [PATCH] add more stict check for tags --- .../java/net/osmand/binary/BinaryMapRouteReaderAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java b/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java index 65f86b3d88..22f147e7b3 100644 --- a/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java +++ b/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java @@ -358,7 +358,7 @@ public class BinaryMapRouteReaderAdapter { destinationTypeRule = id; } else if (tags.equals("destination:ref") || tags.equals("destination:ref:forward") || tags.equals("destination:ref:backward")) { destinationRefTypeRule = id; - } else if (tags.endsWith("direction")) { + } else if (tags.equals("traffic_signals:direction") || tags.equals("give_way:direction") || tags.equals("stop:direction")) { if (val.equals("forward")) { trafficSignalsDir.put(id, 1); } else if (val.equals("backward")) {