You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the order on lon/lat is wrong,in the site-package of geopy,there is a point.py : warnings.warn('Latitude normalization has been prohibited in the newer '
'versions of geopy, because the normalized value happened '
'to be on a different pole, which is probably not what was '
'meant. If you pass coordinates as positional args, '
'please make sure that the order is '
'(latitude, longitude) or (y, x) in Cartesian terms.',
UserWarning, stacklevel=3)
Could it be that the order of lon/lat is wrong in this function?
Should (pathIndices[0,i], pathIndices[1,i]) insted be (pathIndices[1,i], pathIndices[0,i])?
def calculateDistance(pathIndices):
distance = 0
for i in range(0,(len(pathIndices[0])-1)):
distance += vincenty((pathIndices[0,i], pathIndices[1,i]), (pathIndices[0,i+1], pathIndices[1,i+1])).miles*0.868976
return distance
The text was updated successfully, but these errors were encountered: