Calculateur de distance par latitude et longitude
Calculez la distance orthodromique entre deux coordonnées GPS avec la formule de haversine, ainsi que les caps initial et final et le point médian.
Données
Astuce : Ctrl + Entrée pour lancer
Réglages enregistrés
L’aide détaillée ci-dessous n’est pour l’instant disponible qu’en anglais.
À propos de cet outil
When you have coordinates rather than city names (from a GPS track, a photo’s location data, a map pin or an airport list) this calculator finds the great-circle distance between them using the haversine formula. It also gives the initial bearing (the compass course to set off on), the final bearing on arrival and the midpoint.
Enter decimal degrees: north latitudes and east longitudes are positive, south and west are negative. Calgary, for example, is 51.0447, −114.0719.
Mode d’emploi
- Enter point A’s latitude and longitude in decimal degrees.
- Enter point B’s latitude and longitude.
- Run it to see distance, bearings and midpoint.
Fonctionnement du calcul
d = 2R · asin(√(sin²(Δφ/2) + cos φ₁ · cos φ₂ · sin²(Δλ/2))), R = 6,371.0088 km (mean Earth radius). Initial bearing θ = atan2(sin Δλ cos φ₂, cos φ₁ sin φ₂ − sin φ₁ cos φ₂ cos Δλ); final bearing is the reverse course plus 180°.
d = 2R · asin(√(sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2))), R = 6,371.0088 kmExemple détaillé
From downtown Vancouver (49.2827, −123.1207) to Honolulu (21.3069, −157.8583) the great-circle distance is 4,360.015 km (2,709.19 mi, 2,354.22 nmi). A flight sets off on a bearing of 237° and arrives heading 216°; the midpoint is over the Pacific at 36.52° N 143.65° W.
Exemple d’entrée et de résultat
Latitude du point A: 51,045 Longitude du point A: -114,072 Latitude du point B: 43,653 Longitude du point B: -79,383 → Distance: 2 710,814 km → Milles: 1 684,42 mi → Milles marins: 1 463,72 nmi → Cap initial: 94° (E) → Cap final: 120° (SE)
Limites
- Spherical model, accurate to about 0.5%.
- Elevation differences are ignored.
- Decimal degrees only.
Dernière mise à jour:
Questions fréquentes
How do I convert degrees, minutes and seconds?
Decimal = degrees + minutes ÷ 60 + seconds ÷ 3600; make it negative for south or west.
Why do the initial and final bearings differ?
On a sphere, the course along a great circle changes continuously except along the equator or a meridian.
Is this accurate for surveying?
No. For survey-grade distances use an ellipsoidal method such as Vincenty’s.
Dépannage
The distance is far too large.
Check the sign of the longitude: places in the Americas have negative longitudes.
I get an error.
Latitude must be between −90 and 90 and longitude between −180 and 180.
Coordinates have N/S/E/W letters.
Remove the letters and use minus signs for S and W.
Confidentialité & Utilisation gratuite
Mes données sont-elles stockées ?
Vos données restent dans cet onglet. Nous ne recevons ni fichiers, ni textes, ni valeurs de calcul.
Cet outil est-il gratuit ?
Oui. Aucune inscription ni paiement requis.
Voir aussi
D’autres outils utiles
Échelle visuelle : voyez à quel point une distance est grande
Saisissez n’importe quelle distance, de quelques centimètres à des années-lumière, et voyez-la sur une échelle visuelle à côté de repères connus : un autobus, la tour CN, un marathon, le vol Toronto–Vancouver, la Lune et l’étoile la plus proche. Conversion d’unités et temps de trajet inclus.
Distances et voyagesDistance entre villes : km, milles et temps de vol
Trouvez la distance à vol d’oiseau entre 100 villes du Canada, des États-Unis, de l’Inde et du monde, en kilomètres, milles et milles marins, avec durée de vol estimée, cap, point médian et échelle visuelle.
Distances et voyagesCalculateur de vitesse, distance et temps
Calculez le temps de trajet, la vitesse moyenne ou la distance. Combinez kilomètres, milles, mètres et milles marins avec km/h, mi/h, m/s et nœuds.
Distances et voyages