
Then I remove the latitudes and longitudes treated from the arrays. Then I add the minimum distance to a variable that sums up all the minimum distances. This is what I do : I search for the pair of latitudes and longitudes that are at minimum distance in the current arrays.


I calculate the distance between pairs of latitudes and longitudes using the Haversine method. I would like to calculate the sum of the distances between the closest points of these two paths. I have two arrays representing two different GPS paths.
