I am very new to Python. I have a function DISTANCE(lat1, long1, lat2, long2)
that calculates the distance between 2 points.
Then I have a list called POINTS
, where each value is another list which contains those four values.
I would like to obtain the sum of the results of the function DISTANCE
for all the values inside POINTS
.
Can anybody help me with that? Thanks!