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

contains

fun Polygon.contains(latLng: LatLng): Boolean

Computes whether or not latLng is contained within this Polygon.

Parameters

latLng - the LatLng to inspect

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

See Also

PolyUtil.containsLocation