maps-utils-v3-ktx / com.google.maps.android.ktx.utils / kotlin.collections.List / isOnEdge

isOnEdge

fun List<LatLng>.isOnEdge(latLng: LatLng, geodesic: Boolean, tolerance: Double = 0.1): Boolean

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

Parameters

latLng - the LatLng to inspect

geodesic - if this polygon is geodesic or not

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