public class ViaRoutingTemplate extends AbstractRoutingTemplate implements RoutingTemplate
| Modifier and Type | Field and Description |
|---|---|
protected PathWrapper |
altResponse |
protected GHRequest |
ghRequest |
protected GHResponse |
ghResponse |
protected List<Path> |
pathList |
queryResults| Constructor and Description |
|---|
ViaRoutingTemplate(GHRequest ghRequest,
GHResponse ghRsp,
LocationIndex locationIndex) |
| 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.
|
int |
getMaxRetries()
This method returns the maximum number of full retries of these 3 steps
|
boolean |
isReady(PathMerger pathMerger,
Translation tr)
This method merges the returned paths appropriately e.g.
|
List<QueryResult> |
lookup(List<GHPoint> points,
FlagEncoder encoder)
This method takes the query points and returns the looked up QueryResults.
|
getWaypointsprotected final GHRequest ghRequest
protected final GHResponse ghResponse
protected final PathWrapper altResponse
public ViaRoutingTemplate(GHRequest ghRequest, GHResponse ghRsp, LocationIndex locationIndex)
public List<QueryResult> lookup(List<GHPoint> points, FlagEncoder encoder)
RoutingTemplatelookup in interface RoutingTemplatepublic List<Path> calcPaths(QueryGraph queryGraph, RoutingAlgorithmFactory algoFactory, AlgorithmOptions algoOpts)
RoutingTemplatecalcPaths in interface RoutingTemplatepublic boolean isReady(PathMerger pathMerger, Translation tr)
RoutingTemplateisReady in interface RoutingTemplatepublic int getMaxRetries()
RoutingTemplategetMaxRetries in interface RoutingTemplateCopyright © 2012–2018. All rights reserved.