public class PathDetailsFromEdges extends Object implements Path.EdgeVisitor
InstructionsFromEdges
.
This class uses the PathDetailsBuilder
. We provide every edge to the builder
and up to its internals we create a new interval, ie. a new PathDetail in the List.
PathDetail
Constructor and Description |
---|
PathDetailsFromEdges(List<PathDetailsBuilder> calculators,
int previousIndex) |
Modifier and Type | Method and Description |
---|---|
static Map<String,List<PathDetail>> |
calcDetails(Path path,
EncodedValueLookup evLookup,
Weighting weighting,
List<String> requestedPathDetails,
PathDetailsBuilderFactory pathBuilderFactory,
int previousIndex)
Calculates the PathDetails for a Path.
|
void |
finish() |
void |
next(EdgeIteratorState edge,
int index,
int prevEdgeId) |
public PathDetailsFromEdges(List<PathDetailsBuilder> calculators, int previousIndex)
public static Map<String,List<PathDetail>> calcDetails(Path path, EncodedValueLookup evLookup, Weighting weighting, List<String> requestedPathDetails, PathDetailsBuilderFactory pathBuilderFactory, int previousIndex)
path
- weighting
- pathBuilderFactory
- Generates the relevant PathBuilderspublic void next(EdgeIteratorState edge, int index, int prevEdgeId)
next
in interface Path.EdgeVisitor
public void finish()
finish
in interface Path.EdgeVisitor
Copyright © 2012–2020. All rights reserved.