is Location On Path
open fun isLocationOnPath( @NonNull point: LatLng, @NonNull polyline: List<LatLng>, geodesic: Boolean, tolerance: Double): Boolean
Content copied to clipboard
Computes whether the given point lies on or near a polyline, within a specified tolerance in meters. The polyline is composed of great circle segments if geodesic is true, and of Rhumb segments otherwise. The polyline is not closed -- the closing segment between the first point and the last point is not included.
open fun isLocationOnPath( @NonNull point: LatLng, @NonNull polyline: List<LatLng>, geodesic: Boolean): Boolean
Content copied to clipboard
Same as isLocationOnPath
with a default tolerance of 0.1 meters.