Package com.graphhopper.routing
Class DefaultWeightingFactory
java.lang.Object
com.graphhopper.routing.DefaultWeightingFactory
- All Implemented Interfaces:
WeightingFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWeighting
(Profile profile, PMap requestHints, boolean disableTurnCosts)
-
Constructor Details
-
DefaultWeightingFactory
-
-
Method Details
-
createWeighting
- Specified by:
createWeighting
in interfaceWeightingFactory
- Parameters:
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 preparation
-