Coordinate input

Point A

LngLat
Click the map or enter WGS84 coordinates

Point B

LngLat
Click the map or enter WGS84 coordinates
Map (MapFirst)
Click the map to pick A then B, or enter WGS84 coordinates and press Enter
Tutorial & notes

How to use

  1. Map pick — click two locations on the map to mark them and calculate distance
  2. Enter coordinates — type latitude/longitude, then click Calculate distance
  3. Sample data — load a quick Beijing–Shanghai example
  4. Units — results show kilometers, miles, and nautical miles

Distance formula

This tool uses the Haversine formula for great-circle distance on a sphere:

a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)

c = 2 ⋅ atan2( √a, √(1−a) )

d = R ⋅ c