createCurrentAnnotation

fun createCurrentAnnotation(currentLegAnnotation: CurrentLegAnnotation?, leg: RouteLeg, legDistanceRemaining: Double): CurrentLegAnnotation?

Given a list of distance annotations, find the current annotation index. This index retrieves the current annotation from any provided annotation list in LegAnnotation.

Return

a current set of annotation data for the user's position along the route

Parameters

currentLegAnnotation

current annotation being traveled along

leg

holding each list of annotations

legDistanceRemaining

to determine the new set of annotations