collectIntersectionsAhead
fun RouteProgress.collectIntersectionsAhead(lookaheadDistance: Double, limit: Int = Integer.MAX_VALUE, intersectionsFilter: (StepIntersection) -> Boolean = { true }): List<Pair<StepIntersection, Double>>?
Collects intersections ahead within a specified distance.
@param lookaheadDistance The distance in meters to look ahead for intersections
Return
List of pairs containing intersections and their distances, or null if unable to collect
Parameters
limit
Maximum number of intersections to collect
intersectionsFilter
Filter function to determine which intersections to include