Skip to content

Commit fb456dd

Browse files
committed
bike: remove hazmat handling, fixes graphhopper#2840
1 parent 51602fb commit fb456dd

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonPriorityParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void collect(ReaderWay way, double wayTypeSpeed, TreeMap<Double, PriorityCode> w
178178
|| isValidSpeed(maxSpeed) && maxSpeed >= avoidSpeedLimit && !"track".equals(highway)) {
179179
PriorityCode priorityCode = avoidHighwayTags.get(highway);
180180
weightToPrioMap.put(50d, priorityCode == null ? AVOID : priorityCode);
181-
if (way.hasTag("tunnel", intendedValues) || way.hasTag("hazmat", intendedValues)) {
181+
if (way.hasTag("tunnel", intendedValues)) {
182182
PriorityCode worse = priorityCode == null ? BAD : priorityCode.worse().worse();
183183
weightToPrioMap.put(50d, worse == EXCLUDE ? REACH_DESTINATION : worse);
184184
}

core/src/test/java/com/graphhopper/routing/util/parsers/BikeTagParserTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ public void testSpeedAndPriority() {
7777
way.setTag("bicycle", "dismount");
7878
assertPriorityAndSpeed(AVOID, PUSHING_SECTION_SPEED, way);
7979

80-
way.clearTags();
81-
way.setTag("highway", "secondary");
82-
way.setTag("hazmat", "designated");
83-
assertPriorityAndSpeed(BAD, 18, way);
84-
8580
way.clearTags();
8681
way.setTag("highway", "footway");
8782
way.setTag("bicycle", "yes");

0 commit comments

Comments
 (0)