findCurrentIntersection

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

measuredIntersections

measured intersections along the step

stepDistanceTraveled

how far the user has traveled along the step


fun findCurrentIntersection(intersections: List<StepIntersection>, measuredIntersections: List<Pair<StepIntersection?, Double>>, stepDistanceTraveled: Double): StepIntersection?