Poly Util
Functions
Link copied to clipboard
Computes the distance on the sphere between the point p and the line segment start to end.
Link copied to clipboard
Returns true if the provided list of points is a closed polygon (i.e.
Link copied to clipboard
Same as isLocationOnEdge with a default tolerance of 0.1 meters.
open fun isLocationOnEdge(point: LatLng, polygon: List<LatLng>, geodesic: Boolean, tolerance: Double): Boolean
Computes whether the given point lies on or near the edge of a polygon, within a specified tolerance in meters.
Link copied to clipboard
Same as isLocationOnPath with a default tolerance of 0.1 meters.
open fun isLocationOnPath(point: LatLng, polyline: List<LatLng>, geodesic: Boolean, tolerance: Double): Boolean
Computes whether the given point lies on or near a polyline, within a specified tolerance in meters.
Link copied to clipboard
Link copied to clipboard
Same as locationIndexOnPath with a default tolerance of 0.1 meters.
open fun locationIndexOnPath(point: LatLng, poly: List<LatLng>, geodesic: Boolean, tolerance: Double): Int
Computes whether (and where) a given point lies on or near a polyline, within a specified tolerance.