contains

inline fun Polygon.contains(latLng: LatLng): Boolean

Computes whether or not latLng is contained within this Polygon.

Return

true if latLng is contained within this Polygon, otherwise, false

Parameters

latLng

the LatLng to inspect

See also

PolyUtil.containsLocation

inline fun Polyline.contains(latLng: LatLng, tolerance: Double = 0.1): Boolean

Computes where the given latLng is contained on or near this Polyline within a specified tolerance in meters.