use of com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks.PrepareJob in project graphhopper by graphhopper.
the class GraphHopper method buildSubnetworkRemovalJobs.
private List<PrepareJob> buildSubnetworkRemovalJobs() {
List<PrepareJob> jobs = new ArrayList<>();
for (Profile profile : profilesByName.values()) {
// if turn costs are enabled use u-turn costs of zero as we only want to make sure the graph is fully connected assuming finite u-turn costs
Weighting weighting = createWeighting(profile, new PMap().putObject(Parameters.Routing.U_TURN_COSTS, 0));
jobs.add(new PrepareJob(encodingManager.getBooleanEncodedValue(Subnetwork.key(profile.getName())), weighting));
}
return jobs;
}
Aggregations