simplify

inline 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.

Return

the simplified list of LatLng

Parameters

tolerance

the tolerance in meters

See also

PolyUtil.simplify