public final class AlternativeRoutingTemplate extends ViaRoutingTemplate
ghRequest, ghResponse, pathList, responsePath
accessEnc, edgeFilter, locationIndex, lookup, queryResults
Constructor and Description |
---|
AlternativeRoutingTemplate(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
public AlternativeRoutingTemplate(GHRequest ghRequest, GHResponse ghRsp, LocationIndex locationIndex, EncodedValueLookup lookup, Weighting weighting)
public List<QueryResult> lookup(List<GHPoint> points)
RoutingTemplate
lookup
in interface RoutingTemplate
lookup
in class ViaRoutingTemplate
public List<Path> calcPaths(QueryGraph queryGraph, RoutingAlgorithmFactory algoFactory, AlgorithmOptions algoOpts)
RoutingTemplate
calcPaths
in interface RoutingTemplate
calcPaths
in class ViaRoutingTemplate
public void finish(PathMerger pathMerger, Translation tr)
RoutingTemplate
finish
in interface RoutingTemplate
finish
in class ViaRoutingTemplate
Copyright © 2012–2020. All rights reserved.