When Calcuating Distance Between Points On Earth Why Are My Haversine Vs. Geodesic Calculations Diverging?
I am getting wildly diverging distances using two approximations to calculate distance between points on Earth's surface. I am using the Haversine (vectorized) approximation and th
Solution 1:
The Haversine formula calculates distances between points on a sphere (the great-circle distance), as does geopy.distance.great_circle
.
On the other hand, geopy.distance.geodesic
calculates distances between points on an ellipsoidal model of the earth, which you can think of as a "flattened" sphere.
The difference isn't due to rounding so much as they use different formulas, with the geodesic formula more accurately modeling the true shape of the earth.
Post a Comment for "When Calcuating Distance Between Points On Earth Why Are My Haversine Vs. Geodesic Calculations Diverging?"