Measure Distance on a Map
Measure the straight-line distance between two coordinates, or click points on the map to add up a path. It is not driving distance.
Last updated · Report an error
Measure along a path on the map
Click the map to add points. The total of all segments appears below, in the unit chosen above.
Map data © OpenStreetMap contributors.
No points placed yet.
Path total: 0 points
How this is calculated
Distance uses the haversine formula, d = 2R · asin(√(sin²(Δφ/2) + cosφ₁ cosφ₂ sin²(Δλ/2))), with R = 6,371.0088 km. Miles are metres ÷ 1,609.344 and feet are metres ÷ 0.3048. The result is rounded to 2 decimals.
Worked example: the default coordinates (New York City to London) are about 5,570 km apart by this method. Haversine assumes a sphere, so it can differ from distance on the ellipsoid by roughly 0.3% (one source gives about 5,585 km for this pair). It is a straight line over the surface, not a road or flight route.
Sources
These are the references the method relies on. They are listed as given in the page plan; no access dates are recorded yet.
- Earth radius (mean radius (2a+b)/3), Wikipedia.
- Calculate distance, bearing and more between latitude/longitude points, Movable Type Scripts.
- International foot (1 ft = 0.3048 m), NOAA National Geodetic Survey.
- Mile (1 mile = 5,280 ft), Wikipedia.