Skip to content

Commit 3a0f976

Browse files
committed
Remove bike2 vehicle encoded values
1 parent 5580bbc commit 3a0f976

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

core/src/main/java/com/graphhopper/routing/util/VehicleEncodedValues.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ public static VehicleEncodedValues bike(PMap properties) {
7474
return new VehicleEncodedValues(name, accessEnc, speedEnc, priorityEnc, turnCostEnc);
7575
}
7676

77-
public static VehicleEncodedValues bike2(PMap properties) {
78-
if (properties.has("speed_two_directions"))
79-
throw new IllegalArgumentException("bike2 always uses two directions");
80-
return bike(new PMap(properties)
81-
.putObject("name", properties.getString("name", "bike2"))
82-
.putObject("speed_two_directions", true)
83-
);
84-
}
85-
8677
public static VehicleEncodedValues racingbike(PMap properties) {
8778
return bike(new PMap(properties).putObject("name", properties.getString("name", "racingbike")));
8879
}

core/src/main/java/com/graphhopper/routing/util/WheelchairTagParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public IntsRef applyWayTags(ReaderWay way, IntsRef edgeFlags) {
198198
if (Double.isInfinite(fullDist2D))
199199
throw new IllegalStateException("Infinite distance should not happen due to #435. way ID=" + way.getId());
200200

201-
// skip elevation data adjustment for too short segments, TODO improve the elevation data handling and/or use the same mechanism as in bike2
201+
// skip elevation data adjustment for too short segments, TODO improve the elevation data handling and/or use the same mechanism as we used to do in bike2
202202
if (fullDist2D < 20 || !pl.is3D())
203203
return edgeFlags;
204204

docs/core/profiles.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ The vehicle field must correspond to one of GraphHopper's built-in vehicle types
3535
- wheelchair
3636
- bike
3737
- racingbike
38-
- bike2
3938
- mtb
4039
- car
4140
- motorcycle

0 commit comments

Comments
 (0)