BannerInstructionMilestone

open class BannerInstructionMilestone(val identifier: Int, instruction: Instruction? = null, val trigger: Trigger.Statement? = null, routeUtils: RouteUtils = RouteUtils()) : Milestone

A default milestone that is added to MapLibreNavigation when default milestones are enabled.

Please note, this milestone has a custom trigger based on location progress along a route. If you set custom triggers, they will be ignored in favor of this logic.

Constructors

Link copied to clipboard
constructor(identifier: Int, instruction: Instruction? = null, trigger: Trigger.Statement? = null, routeUtils: RouteUtils = RouteUtils())

Properties

Link copied to clipboard

Returns the given BannerInstructions for the time that the milestone is triggered.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun isOccurring(previousRouteProgress: RouteProgress?, routeProgress: RouteProgress): Boolean

A milestone can either be passed in to the MapLibreNavigation object (recommended) or validated directly inside your activity.