simplify

fun simplify(points: List<T>, highestQuality: Boolean): List<T>

Reduces the number of points in a polyline while retaining its shape, giving a performance boost when processing it and also reducing visual noise.

Return

an array of simplified points

Since

1.2.0

See also

Parameters

points

an array of points

highestQuality

excludes distance-based preprocessing step which leads to highest quality simplification


fun simplify(points: List<T>, tolerance: Double = SIMPLIFY_DEFAULT_TOLERANCE, highestQuality: Boolean = SIMPLIFY_DEFAULT_HIGHEST_QUALITY): List<T>

Reduces the number of points in a polyline while retaining its shape, giving a performance boost when processing it and also reducing visual noise.

Return

an array of simplified points

Since

1.2.0

See also

Parameters

points

an array of points

tolerance

affects the amount of simplification (in the same metric as the point coordinates)

highestQuality

excludes distance-based preprocessing step which leads to highest quality simplification