Posted by ED on 05/04/06 20:52
"robert" <ab@no.spam-alama-ding-dong> wrote in message
news:4Xq6g.148$Fa6.14@fe03.lga...
>| $distance = $r * acos(cos($lat1) * cos($lon1) * cos($lat2) * cos($lon2)
> | +
> | cos($lat1) * sin($lon1) * cos($lat2) * sin($lon2)
> | +
> | sin($lat1) * sin($lat2));
> |
> | where:
> |
> | $r -- radius of the Earth
> | $lat1 -- latitude of point 1 in radians
> | $lon1 -- longitude of point 1 in radians
> | $lat2 -- latitude of point 2 in radians
> | $lon2 -- longitude of point 2 in radians
>
> outta curiosity, what unit of measure is this distance in?
>
>
if I understand correctly I dont think it matters as such - it will be the
same unit of measurement as specified by $radius
Navigation:
[Reply to this message]
|