不喜欢广告? 无广告 今天

Geo Distance Calculator (Haversine Formula)

开发人员数学联网
广告 · 消除?

Point A

DD MM SS N/S
DDD MM SS E/W

Point B

DD MM SS N/S
DDD MM SS E/W


Preset City Pairs

Distance Results

单元 距离
Kilometers (km) -
Miles (mi) -
Nautical Miles (nmi) -
米 (m) -
英尺 (ft) -


Map


Haversine Formula

Haversine formula calculates the great-circle distance between two points on a sphere:

a = sin²(Δlat/2) + cos(lat₁) · cos(lat₂) · sin²(Δlon/2)
d = 2R · arcsin(√a)

Where R = 6,371 km (mean Earth radius). Initial bearing:
θ = atan2(sin(Δlon) · cos(lat₂), cos(lat₁) · sin(lat₂) − sin(lat₁) · cos(lat₂) · cos(Δlon))
广告 · 消除?

指导

Geo Distance Calculator (Haversine Formula)

Geo Distance Calculator

Calculate the exact great-circle distance between two geographic coordinates using the Haversine or Vincenty formula. Enter locations as decimal degrees or DMS (degrees, minutes, seconds), get results in kilometers, miles, nautical miles, meters, and feet — plus initial bearing and an interactive map.

如何使用

Select your input mode (decimal degrees or DMS), enter the latitude and longitude for Point A and Point B, choose the Haversine or Vincenty formula, and the distance results appear instantly. Use the preset city pairs for quick testing. Enable multi-point route mode to calculate total distance across multiple waypoints. The interactive map shows your points and the path between them.

特征

  • Haversine Formula – Calculates great-circle distance assuming a perfect sphere (mean Earth radius 6,371 km)
  • Vincenty Formula – Higher-accuracy calculation using the WGS-84 oblate ellipsoid model
  • 多种单位 – Results in kilometers, miles, nautical miles, meters, and feet
  • DMS Input – Enter coordinates as degrees, minutes, seconds with compass direction
  • Initial Bearing – Shows the compass heading from Point A to Point B
  • Interactive Map – Leaflet.js-powered map displaying both points and the connecting path
  • Multi-Point Routing – Add waypoints to calculate cumulative route distance
  • Preset City Pairs – Quick-select common routes like New York to London

广告 · 消除?

常问问题

  1. What is the Haversine formula and when should I use it?

    The Haversine formula calculates the shortest distance between two points on a sphere using their latitudes and longitudes. It assumes Earth is a perfect sphere with radius 6,371 km. It is accurate to within about 0.3% for most practical distances and is the standard formula for navigation and mapping applications.

  2. How does the Vincenty formula differ from Haversine?

    The Vincenty formula models Earth as an oblate ellipsoid (WGS-84) rather than a perfect sphere. This accounts for the fact that Earth is slightly flattened at the poles, providing accuracy to within 0.5 mm. It is preferred for geodetic surveying and high-precision applications, especially over long distances.

  3. What is a great-circle distance?

    A great-circle distance is the shortest path between two points on the surface of a sphere, measured along the surface. It follows the arc of a great circle, which is a circle whose center coincides with the center of the sphere. Airline flight paths roughly follow great-circle routes to minimize fuel consumption.

  4. What is initial bearing and how is it calculated?

    Initial bearing (or forward azimuth) is the compass direction you would face when starting a journey from Point A toward Point B along the great-circle path. It is calculated using the atan2 function applied to the difference in longitudes and the latitudes of both points. The bearing changes continuously along a great-circle route.

想要享受无广告的体验吗? 立即无广告

安装我们的扩展

将 IO 工具添加到您最喜欢的浏览器,以便即时访问和更快地搜索

添加 Chrome 扩展程序 添加 边缘延伸 添加 Firefox 扩展 添加 Opera 扩展

记分板已到达!

记分板 是一种有趣的跟踪您游戏的方式,所有数据都存储在您的浏览器中。更多功能即将推出!

广告 · 消除?
广告 · 消除?
广告 · 消除?

新闻角 包含技术亮点

参与其中

帮助我们继续提供有价值的免费工具

给我买杯咖啡
广告 · 消除?