add more stict check for tags

This commit is contained in:
MadWasp79 2020-06-19 17:55:53 +03:00
parent 54e9b29d9e
commit 0dc70df409

View file

@ -358,7 +358,7 @@ public class BinaryMapRouteReaderAdapter {
destinationTypeRule = id; destinationTypeRule = id;
} else if (tags.equals("destination:ref") || tags.equals("destination:ref:forward") || tags.equals("destination:ref:backward")) { } else if (tags.equals("destination:ref") || tags.equals("destination:ref:forward") || tags.equals("destination:ref:backward")) {
destinationRefTypeRule = id; 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")) { if (val.equals("forward")) {
trafficSignalsDir.put(id, 1); trafficSignalsDir.put(id, 1);
} else if (val.equals("backward")) { } else if (val.equals("backward")) {