public class IntersectionDetails extends AbstractPathDetailsBuilder
The format is inspired by the format that is consumed by Maplibre Navigation SDK.
Explanation of the format:
- entries
contain an array of the edges at that intersection. They are sorted by bearing, starting from 0 (which is 0° north) to 359. Every edge that we can turn onto is marked with “true” in the array.
- bearings
contain an array of the edges at that intersection. They are sorted by bearing, starting from 0 (which is 0° north) to 359. The array contains the bearings of each edge at that intersection.
- in
marks the index in the “bearings” edge we are coming from.
- out
the index we are going to.
Constructor and Description |
---|
IntersectionDetails(Graph graph,
Weighting weighting) |
Modifier and Type | Method and Description |
---|---|
Object |
getCurrentValue()
The value of the Path at this moment, that should be stored in the PathDetail when calling startInterval
|
boolean |
isEdgeDifferentToLastEdge(EdgeIteratorState edge) |
build, endInterval, getName, startInterval, toString
public boolean isEdgeDifferentToLastEdge(EdgeIteratorState edge)
public Object getCurrentValue()
AbstractPathDetailsBuilder
getCurrentValue
in class AbstractPathDetailsBuilder
Copyright © 2012–2022. All rights reserved.