public final class AlternativeRoutingTemplate extends ViaRoutingTemplate
altResponse, ghRequest, ghResponse, pathListqueryResults| Constructor and Description |
|---|
AlternativeRoutingTemplate(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.
|
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.
|
getMaxRetriesgetWaypointspublic AlternativeRoutingTemplate(GHRequest ghRequest, GHResponse ghRsp, LocationIndex locationIndex)
public List<QueryResult> lookup(List<GHPoint> points, FlagEncoder encoder)
RoutingTemplatelookup in interface RoutingTemplatelookup in class ViaRoutingTemplatepublic List<Path> calcPaths(QueryGraph queryGraph, RoutingAlgorithmFactory algoFactory, AlgorithmOptions algoOpts)
RoutingTemplatecalcPaths in interface RoutingTemplatecalcPaths in class ViaRoutingTemplatepublic boolean isReady(PathMerger pathMerger, Translation tr)
RoutingTemplateisReady in interface RoutingTemplateisReady in class ViaRoutingTemplateCopyright © 2012–2018. All rights reserved.