Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Great circle distance
Message
De
24/12/1998 07:44:24
 
 
À
23/12/1998 16:57:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00170092
Message ID:
00170205
Vues:
27
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform