底層運作原理
The haversine formula gives the shortest distance over a sphere: a = sin²(Δφ/2) + cos φ1 cos φ2 sin²(Δλ/2), d = 2R·asin(√a), using the mean Earth radius 6,371.0088 km. Initial bearing and the midpoint use standard spherical trigonometry.
詳細操作步驟
Enter latitude and longitude of point A and point B in decimal degrees.
Choose the distance unit.
Read distance, initial bearing, compass direction and midpoint.
核心功能與效能優勢
- km, miles and nautical miles
- Bearing and 16-point compass
- Midpoint coordinates
- Validates ranges
實作範例與邊界案例
London to Paris
51.5074, -0.1278 to 48.8566, 2.3522
About 343.5 km
使用限制與精準度說明
- • Treats Earth as a sphere, so results can differ from ellipsoidal methods by up to about 0.5%.
- • It is straight-line distance, not road distance.
瀏覽器本地運算與隱私保障
傳統線上轉換網站會將您的文件、文字片段或影音檔案上傳至遠端伺服器。Haversine 距離計算器 完全在您的瀏覽器分頁內運行:
您的檔案與文字都在裝置本機計算,不會傳送內容至任何後端伺服器。
Microdeck 不會記錄或儲存您在工具內貼上的任何檔案或程式碼。
所有暫存結果僅存在目前分頁記憶體中,重設或關閉分頁後即刻清除。
常見問題 (FAQ)
How accurate is it?
Usually within a fraction of a percent for most routes; for survey-grade work use an ellipsoidal formula such as Vincenty.
Do I need decimal degrees?
Yes. Use the GPS Coordinate Converter to convert from degrees-minutes-seconds.
Is data stored?
No.