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.
tolerance
- the tolerance in meters
Return
the simplified list of LatLng
See Also