Builder

class Builder

Builder of ManeuverOptions

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): ManeuverOptions

Build a new instance of ManeuverOptions

Link copied to clipboard
fun filterDuplicateManeuvers(filterDuplicateManeuvers: Boolean): ManeuverOptions.Builder

Guidance instructions returned by the Mapbox Directions API often have instructions on a route duplicated to control the timing of when to notify the user about details of an upcoming maneuver. For example, there can a "left turn" BannerInstructions available 1000m and 300m before a turn, where only the latter also contains lane information. By setting this flag to true, you can filter out those duplicates which improves the presentation in, for example, a scrolling list.