public class RoundTripRoutingTemplate extends AbstractRoutingTemplate implements RoutingTemplate
accessEnc, edgeFilter, locationIndex, lookup, queryResults
Constructor and Description |
---|
RoundTripRoutingTemplate(GHRequest request,
GHResponse ghRsp,
LocationIndex locationIndex,
EncodedValueLookup lookup,
Weighting weighting,
int maxRetries) |
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.
|
void |
setPaths(List<Path> pathList) |
getWaypoints
public RoundTripRoutingTemplate(GHRequest request, GHResponse ghRsp, LocationIndex locationIndex, EncodedValueLookup lookup, Weighting weighting, int maxRetries)
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.