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).
latLng
- the LatLng to inspect
geodesic
- if this polyline is geodesic or not
tolerance
- the tolerance in meters
Return
true if latLng is on this path, otherwise, false
See Also