withTolerance

fun withTolerance(tolerance: Double): MapboxRouteLineOptions.Builder

Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance) for the GeoJsonSources created to display the route line.

Defaults to 0.375.

Return

the builder

See also

<a href="https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/#geojson-tolerance">The online documentation</a>