File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
core/src/main/java/com/graphhopper/routing/ch Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -243,10 +243,14 @@ public RoutingAlgorithmFactory getDecoratedAlgorithmFactory(RoutingAlgorithmFact
243
243
if (map .getWeighting ().isEmpty ())
244
244
map .setWeighting (getDefaultWeighting ());
245
245
246
+ return getPreparation (map );
247
+ }
248
+
249
+ public PrepareContractionHierarchies getPreparation (HintsMap map ) {
246
250
boolean edgeBased = map .getBool (Parameters .Routing .EDGE_BASED , false );
247
251
List <String > entriesStrs = new ArrayList <>();
248
252
boolean weightingMatchesButNotEdgeBased = false ;
249
- for (PrepareContractionHierarchies p : allPreparations ) {
253
+ for (PrepareContractionHierarchies p : getPreparations () ) {
250
254
boolean weightingMatches = p .getWeighting ().matches (map );
251
255
if (p .isEdgeBased () == edgeBased && weightingMatches )
252
256
return p ;
You can’t perform that action at this time.
0 commit comments