Class DefaultWeightingFactory

java.lang.Object
com.graphhopper.routing.DefaultWeightingFactory
All Implemented Interfaces:
WeightingFactory

public class DefaultWeightingFactory extends Object implements WeightingFactory
  • Constructor Details

  • Method Details

    • createWeighting

      public Weighting createWeighting(Profile profile, PMap requestHints, boolean disableTurnCosts)
      Specified by:
      createWeighting in interface WeightingFactory
      Parameters:
      profile - The profile for which the weighting shall be created
      requestHints - Additional hints that can be used to further specify the weighting that shall be created
      disableTurnCosts - 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