getPointOnPolyline

fun getPointOnPolyline(polyline: List<LatLng>, percentage: Double): LatLng?

Returns the point on a polyline that is a given percentage of the total length of the polyline.

Return

the LatLng of the point on the polyline, or null if the polyline is empty or the percentage is outside the range 0, 1

Parameters

polyline

the polyline

percentage

the percentage of the total length of the polyline to find the point for