Skip to content
Prev 7379 / 29559 Next

Best way to calculate distance between geographicalpoints

On Thu, 14 Jan 2010 12:27:04 +0100 (CET) Roger Bivand
<Roger.Bivand at nhh.no> wrote:
It does. Thanks.

BTW, is there a reason 'spDistsN1' handle longitude 360 different from 
longitude 0? For example, the distance between 0,0 and 0,0 is 0, but the 
distance between 0,0 and 360,0 is about 1e-12. This is of course not a 
problem; I was just wondering on the reason (since 360,0 is for all 
practical *correctly* handled -- it's just not handled equal to 0,0).