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.
|
getWaypoints
protected 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)
RoutingTemplate
lookup
in interface RoutingTemplate
public List<Path> calcPaths(QueryGraph queryGraph, RoutingAlgorithmFactory algoFactory, AlgorithmOptions algoOpts)
RoutingTemplate
calcPaths
in interface RoutingTemplate
public void finish(PathMerger pathMerger, Translation tr)
RoutingTemplate
finish
in interface RoutingTemplate
Copyright © 2012–2020. All rights reserved.