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
>>> a = (-22.6559, -58.9053)
>>> b = (23.0917, 121.348)
>>> vincenty(a, b) # None!
>>> b = (23.0917, 122.348) # Increase the longitude by a little bit.
>>> vincenty(a, b)
19889.79461
The text was updated successfully, but these errors were encountered:
Vincenty formula will fail to converge in points that are anti poidal in nature in debugging the source code i observed that.The return value is None because the points failed to converge. These points are anti poidal in nature that is they are in opposite sides of earth even vincenty was aware of this limitation.This is not a problem of implementation .Inverse implementation of vincenty formula will fail to converge for points that are anti poidal
Thanks! This makes me wonder, what is the tolerance threshold here? These points are not exactly antipodal, neither in terms of latitude nor in terms of longitude (the "true" antipode to point a is (22.6559, 121.0947)). If the model is likely to fail given approximately antipodal points, I would say it makes sense to check for that in advance and raise some kind of AntipodalPointsError.
Like this:
The text was updated successfully, but these errors were encountered: