经纬度距离计算器
使用半正矢(haversine)公式计算两个 GPS 坐标之间的大圆距离,并给出初始和最终方位角以及中点。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
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.
使用方法
- 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.
计算原理
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 km计算示例
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.
示例输入和结果
A 点纬度: 51.045 A 点经度: -114.072 B 点纬度: 43.653 B 点经度: -79.383 → 距离: 2,710.814公里 → 英里: 1,684.42英里 → 海里: 1,463.72 nmi → 初始方位角: 94° (东) → 最终方位角: 120° (东南)
局限性
- Spherical model, accurate to about 0.5%.
- Elevation differences are ignored.
- Decimal degrees only.
最后更新:
常见问题
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.
故障排除
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.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。