is Location On Path
inline fun List<LatLng>.isLocationOnPath(latLng: LatLng, geodesic: Boolean, tolerance: Double = 0.1): Boolean
Computes whether the given latLng lies on or is near this polyline within tolerance (in meters).
Return
true if latLng is on this path, otherwise, false
Parameters
lat Lng
the LatLng to inspect
geodesic
if this polyline is geodesic or not
tolerance
the tolerance in meters
See also
PolyUtil. is Location On Path