I have a collection of GPS coordinates (Lat/log) in an array that I want to use to create a polygon in google maps. If i use the unsorted array, the polygon lines are drawn in the order of the array index.
I am wondering if there is a way to sort the array such that when i draw the polygon, the borders do not overlap. Any insight will be appreciated. Thanks!!