public class DefaultWeightingFactory extends Object implements WeightingFactory
| Constructor and Description |
|---|
DefaultWeightingFactory(GraphHopperStorage ghStorage,
EncodingManager encodingManager) |
| Modifier and Type | Method and Description |
|---|---|
Weighting |
createWeighting(Profile profile,
PMap requestHints,
boolean disableTurnCosts) |
public DefaultWeightingFactory(GraphHopperStorage ghStorage, EncodingManager encodingManager)
public Weighting createWeighting(Profile profile, PMap requestHints, boolean disableTurnCosts)
createWeighting in interface WeightingFactoryprofile - The profile for which the weighting shall be createdrequestHints - Additional hints that can be used to further specify the weighting that shall be createddisableTurnCosts - Can be used to explicitly create the weighting without turn costs. This is sometimes
needed when the weighting shall be used by some algorithm that can or should only be run
with node-based graph traversal, like LM preparationCopyright © 2012–2020. All rights reserved.