How can I calculate the distance between two points (lon/lat) if any of the points exceeds the antimeridian (+-180 longitude)?
I am using the distVincentyEllipsoid {geosphere} to calculate the shortest distance between two points. But if any of the points crosses the antimeridian the distance will be very close to zero.
I have seen Intersection algorithm that correctly handles the 180° meridian and poles? but it does not use R.
distVincentyEllipsoidis incorrect. Could you perhaps supply an example of a pair of points with its output and what you think is the correct distance? – whuber Apr 09 '14 at 17:06