Builder

class Builder

Builder for RerouteOptions.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun avoidManeuverSeconds(avoidManeuverSeconds: Int): RerouteOptions.Builder

Avoid maneuver second. A radius in seconds around reroute origin point where need to avoid any significant maneuvers. Unit is seconds.

Link copied to clipboard
fun build(): RerouteOptions

Build the RerouteOptions

Link copied to clipboard

Enables legacy reroute logic for routes generated by Mapbox Map Matching API. Legacy logic builds a new route using Mapbox Directions API using all coordinates from original request to Mapbox Map Matching API. Legacy logic aren't able to handle more than 25 coordinates as well as OpenLr.