public class NavigationHelper extends Object
Modifier and Type | Method and Description |
---|---|
static CurrentLegAnnotation |
createCurrentAnnotation(CurrentLegAnnotation currentLegAnnotation,
com.mapbox.api.directions.v5.models.RouteLeg leg,
double legDistanceRemaining)
Given a list of distance annotations, find the current annotation index.
|
@Nullable public static CurrentLegAnnotation createCurrentAnnotation(CurrentLegAnnotation currentLegAnnotation, com.mapbox.api.directions.v5.models.RouteLeg leg, double legDistanceRemaining)
LegAnnotation
.currentLegAnnotation
- current annotation being traveled alongleg
- holding each list of annotationslegDistanceRemaining
- to determine the new set of annotations© 2019 Mapbox. All rights reserved.