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