Package com.graphhopper.routing
Class ViaRouting
java.lang.Object
com.graphhopper.routing.ViaRouting
The methods here can be used to calculate routes with or without via points and implement possible restrictions
like snap preventions, headings and curbsides.
- Author:
- Peter Karich, easbar
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ViaRouting.Result
calcPaths
(List<GHPoint> points, QueryGraph queryGraph, List<Snap> snaps, DirectedEdgeFilter directedEdgeFilter, PathCalculator pathCalculator, List<String> curbsides, boolean forceCurbsides, List<Double> headings, boolean passThrough) lookup
(EncodedValueLookup lookup, List<GHPoint> points, EdgeFilter snapFilter, LocationIndex locationIndex, List<String> snapPreventions, List<String> pointHints, DirectedEdgeFilter directedSnapFilter, List<Double> headings)
-
Constructor Details
-
ViaRouting
public ViaRouting()
-
-
Method Details
-
lookup
public static List<Snap> lookup(EncodedValueLookup lookup, List<GHPoint> points, EdgeFilter snapFilter, LocationIndex locationIndex, List<String> snapPreventions, List<String> pointHints, DirectedEdgeFilter directedSnapFilter, List<Double> headings) - Throws:
com.graphhopper.routing.MultiplePointsNotFoundException
- in case one or more points could not be resolved
-
calcPaths
public static ViaRouting.Result calcPaths(List<GHPoint> points, QueryGraph queryGraph, List<Snap> snaps, DirectedEdgeFilter directedEdgeFilter, PathCalculator pathCalculator, List<String> curbsides, boolean forceCurbsides, List<Double> headings, boolean passThrough)
-