Skip to content

Commit b4a5295

Browse files
committed
fix blockFords to block_fords
1 parent e352595 commit b4a5295

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

core/src/main/java/com/graphhopper/routing/Path.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ void reverseOrder() {
150150
edgeIds.reverse();
151151
}
152152

153+
public Path setDistance(double distance) {
154+
this.distance = distance;
155+
return this;
156+
}
157+
153158
/**
154159
* @return distance in meter
155160
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public FootFlagEncoder(PMap properties) {
6161
this((int) properties.getLong("speedBits", 4),
6262
properties.getDouble("speedFactor", 1));
6363
this.properties = properties;
64-
this.setBlockFords(properties.getBool("blockFords", true));
64+
this.setBlockFords(properties.getBool("block_fords", true));
6565
}
6666

6767
public FootFlagEncoder(String propertiesStr) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public HikeFlagEncoder(PMap properties) {
4242
this((int) properties.getLong("speedBits", 4),
4343
properties.getDouble("speedFactor", 1));
4444
this.properties = properties;
45-
this.setBlockFords(properties.getBool("blockFords", true));
45+
this.setBlockFords(properties.getBool("block_fords", true));
4646
}
4747

4848
public HikeFlagEncoder(String propertiesStr) {

tools/src/main/java/com/graphhopper/tools/Measurement.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ protected DataReader importData() throws IOException {
102102
hopper.importOrLoad();
103103

104104
GraphHopperStorage g = hopper.getGraphHopperStorage();
105-
// if ("true".equals(g.getProperties().get("prepare.done")))
106-
// throw new IllegalStateException("Graph has to be unprepared but wasn't!");
107-
105+
108106
String vehicleStr = args.get("graph.flag_encoders", "car");
109107
FlagEncoder encoder = hopper.getEncodingManager().getEncoder(vehicleStr);
110108
Weighting weighting = hopper.getCHFactoryDecorator().getWeightings().get(0);

0 commit comments

Comments
 (0)