Open satorg opened 3 years ago
This probably happens because "Between two nearly antipodal points, the iterative formula may fail to converge". Perhaps in such cases, half the circumference of earth should be used.
@mrjonjonjon yes, looks like so... But seems there's no clear and ready-to-use solution yet.
Sometimes
VincentyGeodesy.distanceInMeters
producesNaN
for pretty valid input points. There are examples (not a complete list!) of arguments fordistanceInMeters
below that result it to generateNaN
:The list above is generated with help of ScalaCheck.
Version: 1.4.0