isOnEdge

inline 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.

Return

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

Parameters

latLng

the LatLng to inspect

geodesic

if this polygon is geodesic or not

tolerance

the tolerance in meters

See also

PolyUtil.isLocationOnEdge

inline 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.

Return

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

Parameters

latLng

the LatLng to inspect

tolerance

the tolerance in meters

See also

PolyUtil.isLocationOnEdge