public class ViaRoutingTemplate extends AbstractRoutingTemplate implements RoutingTemplate
| Modifier and Type | Field and Description |
|---|---|
protected GHRequest |
ghRequest |
protected GHResponse |
ghResponse |
protected List<Path> |
pathList |
protected ResponsePath |
responsePath |
accessEnc, edgeFilter, locationIndex, lookup, queryResults| Constructor and Description |
|---|
ViaRoutingTemplate(GHRequest ghRequest,
GHResponse ghRsp,
LocationIndex locationIndex,
EncodedValueLookup lookup,
Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
List<Path> |
calcPaths(QueryGraph queryGraph,
RoutingAlgorithmFactory algoFactory,
AlgorithmOptions algoOpts)
This method returns a list of Path objects which then can be merged to serve one route with
via points or multiple alternative paths.
|
void |
finish(PathMerger pathMerger,
Translation tr)
This method merges the returned paths appropriately e.g.
|
List<QueryResult> |
lookup(List<GHPoint> points)
This method takes the query points and returns the looked up QueryResults.
|
getWaypointsprotected final GHRequest ghRequest
protected final GHResponse ghResponse
protected final ResponsePath responsePath
public ViaRoutingTemplate(GHRequest ghRequest, GHResponse ghRsp, LocationIndex locationIndex, EncodedValueLookup lookup, Weighting weighting)
public List<QueryResult> lookup(List<GHPoint> points)
RoutingTemplatelookup in interface RoutingTemplatepublic List<Path> calcPaths(QueryGraph queryGraph, RoutingAlgorithmFactory algoFactory, AlgorithmOptions algoOpts)
RoutingTemplatecalcPaths in interface RoutingTemplatepublic void finish(PathMerger pathMerger, Translation tr)
RoutingTemplatefinish in interface RoutingTemplateCopyright © 2012–2020. All rights reserved.