Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Great circle distance
Message
From
24/12/1998 07:44:24
 
 
To
23/12/1998 16:57:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00170092
Message ID:
00170205
Views:
26
Hi John,

Wow... thanks!! I actually spent two hours in our local library scanning math books. They all described the issue well but NONE offered the formula!

Thanks again,

Ken

>
>Try the following: (In Km)
>
>Convert longitude and latitude to radians: (long or lat * Pi/180)
>theta = lon2 - lon1
>dist = acos(sin(lat1) × sin(lat2) + cos(lat1) × cos(lat2) × cos(theta))
>if (dist < 0)
> dist = dist + pi
>endif
>dist=dist*6371.2
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform