I am using geopy
for calculating distance between two locations.
from geopy.distance import distance
loc1 = (41.49008, -71.312796)
loc2 = (41.499498, -81.695391)
dist = distance(loc1,loc2).miles
print dist
this gives an output
538.390445157
But I just wanted to tally if the geopy
calculations were close enough to google maps or not. So I checked it on google maps and its saying
638 miles
for the same locations.
How do I fill the difference? Any suggestions? Thank you.