Open macleginn opened 2 years ago
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: