GeoPolylineSimplification

object GeoPolylineSimplification : LineSimplification<Coords>

Functions

Link copied to clipboard
fun simplify(points: List<Coords>, highestQuality: Boolean): List<Coords>
fun simplify(points: List<Coords>, tolerance: Double = SIMPLIFY_DEFAULT_TOLERANCE, highestQuality: Boolean = SIMPLIFY_DEFAULT_HIGHEST_QUALITY): List<Coords>

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