maps-utils-ktx / com.google.maps.android.ktx.utils / com.google.android.gms.maps.model.Polygon / isOnEdge

isOnEdge

fun Polygon.isOnEdge(latLng: LatLng, tolerance: Double = 0.1): Boolean

Checks whether or not latLng lies on or is near the edge of this Polygon within a tolerance (in meters) of tolerance. The default value is PolyUtil.DEFAULT_TOLERANCE.

Parameters

latLng - the LatLng to inspect

tolerance - the tolerance in meters

Return
true if latLng lies on or is near the edge of this Polygon, otherwise, false

See Also

PolyUtil.isLocationOnEdge