Package-level declarations

Types

Link copied to clipboard
data class CurrentLegAnnotation(val index: Int, val distanceToAnnotation: Double, val distance: Double, val duration: Double?, val speed: Double?, val maxSpeed: MaxSpeed?, val congestion: String? = null)

This class represents the current annotation being traveled along at a given time during navigation.

Link copied to clipboard
Link copied to clipboard
data class RouteLegProgress(val stepIndex: Int, val distanceRemaining: Double, val currentStepPoints: List<Point>?, val upcomingStepPoints: List<Point>?, val currentLegAnnotation: CurrentLegAnnotation?, val routeLeg: RouteLeg, val stepDistanceRemaining: Double, val intersections: List<StepIntersection>?, val currentIntersection: StepIntersection?, val upcomingIntersection: StepIntersection?, val intersectionDistancesAlongStep: Map<StepIntersection, Double>?)

This is a progress object specific to the current leg the user is on. If there is only one leg in the directions route, much of this information will be identical to the parent RouteProgress.

Link copied to clipboard
data class RouteProgress(val directionsRoute: DirectionsRoute, val legIndex: Int, val distanceRemaining: Double, val currentStepPoints: List<Point>, val upcomingStepPoints: List<Point>?, val stepIndex: Int, val legDistanceRemaining: Double, val stepDistanceRemaining: Double, val intersections: List<StepIntersection>?, val currentIntersection: StepIntersection?, val upcomingIntersection: StepIntersection?, val currentLegAnnotation: CurrentLegAnnotation?, val intersectionDistancesAlongStep: Map<StepIntersection, Double>?)

This class contains all progress information at any given time during a navigation session. This progress includes information for the current route, leg and step the user is traversing along. With every new valid location update, a new route progress will be generated using the latest information.

Link copied to clipboard
data class RouteStepProgress(val distanceRemaining: Double, val intersections: List<StepIntersection>?, val currentIntersection: StepIntersection?, val upcomingIntersection: StepIntersection?, val intersectionDistancesAlongStep: Map<StepIntersection, Double>?, val step: LegStep, val nextStep: LegStep?)

This is a progress object specific to the current step the user is on.