tripkit-android / com.skedgo.tripkit.common.util / PolyUtil / isClosedPolygon

isClosedPolygon

open static fun isClosedPolygon(poly:MutableList<TripKitLatLng!>!):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

Parameters

poly - MutableList<TripKitLatLng!>!: polyline or polygon

Return Boolean: 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