find Current Intersection
fun findCurrentIntersection(intersections: List<StepIntersection>, measuredIntersections: Map<StepIntersection, Double>, stepDistanceTraveled: Double): StepIntersection?
Based on the list of measured intersections and the step distance traveled, finds the current intersection a user is traveling along.
Return
the current step intersection
Since
0.13.0
Parameters
intersections
along the step
measured Intersections
measured intersections along the step
step Distance Traveled
how far the user has traveled along the step
fun findCurrentIntersection(intersections: List<StepIntersection>, measuredIntersections: List<Pair<StepIntersection?, Double>>, stepDistanceTraveled: Double): StepIntersection?