tripkit-android / com.skedgo.tripkit.common.util / PolyUtil / isLocationOnPath

isLocationOnPath

open static fun isLocationOnPath(point:TripKitLatLng!, polyline:MutableList<TripKitLatLng!>!, geodesic:Boolean, tolerance:Double):Boolean

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 static fun isLocationOnPath(point:TripKitLatLng!, polyline:MutableList<TripKitLatLng!>!, geodesic:Boolean):Boolean

Same as `[#isLocationOnPath(TripKitLatLng, List, boolean, double)`](./is-location-on-path.md)

with a default tolerance of 0.1 meters.