I have a list of coordinates:
[(52.472665, -1.8977818),
(52.47455886, -1.90080653),
(52.4515712, -1.9327772),
(52.45028622, -1.93212766),..]
I am trying to write code that will allow me to calculate the distance between each one using the Haversine module:
(pseudo code)
for points in daycoords1:
p1 = day1coords[0]
p2 = day1coords[1]
dist_miles = haversine(p1, p2, miles=True)
distday1.append(dist_miles)
Is there a way to pull in coordinates one and two, measure the distance, two and three and mesaure that distance etc.
I have been trying to use itertools and zip() but I am yet to have any luck.