public class DefaultWeightingFactory extends Object implements WeightingFactory
Constructor and Description |
---|
DefaultWeightingFactory(BaseGraph graph,
EncodingManager encodingManager) |
Modifier and Type | Method and Description |
---|---|
Weighting |
createWeighting(Profile profile,
PMap requestHints,
boolean disableTurnCosts) |
boolean |
isOutdoorVehicle(String name) |
public DefaultWeightingFactory(BaseGraph graph, EncodingManager encodingManager)
public Weighting createWeighting(Profile profile, PMap requestHints, boolean disableTurnCosts)
createWeighting
in interface WeightingFactory
profile
- 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 preparationpublic boolean isOutdoorVehicle(String name)
Copyright © 2012–2022. All rights reserved.