maps-utils-ktx / com.google.maps.android.ktx.utils / kotlin.collections.List / simplify

simplify

fun List<LatLng>.simplify(tolerance: Double): List<LatLng>

Simplifies this list of LatLng using the Douglas-Peucker decimation. Increasing the value of tolerance will result in fewer points.

Parameters

tolerance - the tolerance in meters

Return
the simplified list of LatLng

See Also

PolyUtil.simplify