I have a set of latitudes and longitudes of locations.
just use the distance formula Sqrt( (x2-x1)^2 + (y2-y1)^2 )
Sqrt( (x2-x1)^2 + (y2-y1)^2 )