isClosedPolygon

open fun isClosedPolygon(poly: List<LatLng>): Boolean

Returns true if the provided list of points is a closed polygon (i.e., the first and last points are the same), and false if it is not

Return

true if the provided list of points is a closed polygon (i.e., the first and last points are the same), and false if it is not

Parameters

poly

polyline or polygon