File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
core/src/main/java/com/graphhopper/routing
tools/src/main/java/com/graphhopper/tools Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ void reverseOrder() {
150
150
edgeIds .reverse ();
151
151
}
152
152
153
+ public Path setDistance (double distance ) {
154
+ this .distance = distance ;
155
+ return this ;
156
+ }
157
+
153
158
/**
154
159
* @return distance in meter
155
160
*/
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public FootFlagEncoder(PMap properties) {
61
61
this ((int ) properties .getLong ("speedBits" , 4 ),
62
62
properties .getDouble ("speedFactor" , 1 ));
63
63
this .properties = properties ;
64
- this .setBlockFords (properties .getBool ("blockFords " , true ));
64
+ this .setBlockFords (properties .getBool ("block_fords " , true ));
65
65
}
66
66
67
67
public FootFlagEncoder (String propertiesStr ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public HikeFlagEncoder(PMap properties) {
42
42
this ((int ) properties .getLong ("speedBits" , 4 ),
43
43
properties .getDouble ("speedFactor" , 1 ));
44
44
this .properties = properties ;
45
- this .setBlockFords (properties .getBool ("blockFords " , true ));
45
+ this .setBlockFords (properties .getBool ("block_fords " , true ));
46
46
}
47
47
48
48
public HikeFlagEncoder (String propertiesStr ) {
Original file line number Diff line number Diff line change @@ -102,9 +102,7 @@ protected DataReader importData() throws IOException {
102
102
hopper .importOrLoad ();
103
103
104
104
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
+
108
106
String vehicleStr = args .get ("graph.flag_encoders" , "car" );
109
107
FlagEncoder encoder = hopper .getEncodingManager ().getEncoder (vehicleStr );
110
108
Weighting weighting = hopper .getCHFactoryDecorator ().getWeightings ().get (0 );
You can’t perform that action at this time.
0 commit comments