limitPointsOnRouteSimple

fun limitPointsOnRouteSimple(points: List<LatLng>, maxPoints: Int): List<LatLng>

Limits points on a route (List of LatLng) to a certain amount

Return

New list of LatLng

Parameters

points

List of LatLng

maxPoints

Amount of points to limit to