Package com.graphhopper.routing
Class RoutingAlgorithmFactorySimple
java.lang.Object
com.graphhopper.routing.RoutingAlgorithmFactorySimple
- All Implemented Interfaces:
RoutingAlgorithmFactory
A simple factory creating normal algorithms (RoutingAlgorithm) without preparation.
- Author:
- Peter Karich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAlgo
(Graph g, Weighting w, AlgorithmOptions opts) This method creates an algorithm out of this factory based on the specified opts and graph.static WeightApproximator
getApproximation
(String prop, PMap opts, Weighting weighting, NodeAccess na)
-
Constructor Details
-
RoutingAlgorithmFactorySimple
public RoutingAlgorithmFactorySimple()
-
-
Method Details
-
createAlgo
Description copied from interface:RoutingAlgorithmFactory
This method creates an algorithm out of this factory based on the specified opts and graph.- Specified by:
createAlgo
in interfaceRoutingAlgorithmFactory
-
getApproximation
public static WeightApproximator getApproximation(String prop, PMap opts, Weighting weighting, NodeAccess na)
-