The haversine formula
The distance is computed with the haversine formula on a sphere of radius 6,371,000 m — the mean Earth radius, and the same model the Land Measure app uses for every side of a measured plot. φ is latitude and λ longitude, in radians:
The bearing is measured clockwise from true north: 0° is north, 90° east, 180° south, 270° west. The final bearing is the direction you are heading as you arrive at point B.
Worked example
From New York City (40.7128, −74.0060) to Los Angeles (34.0522, −118.2437): the great-circle distance is 3,935.75 km (2,445.56 mi). You set off on a bearing of 273.7° (just north of due west) and arrive heading 245.9°. The midpoint is near 39.5103, −97.1601 in Kansas.
Uses on the land
- Check the length of a boundary line between two surveyed corners from a deed or plat.
- Measure how far a well, building or tree is from a corner marker.
- Compare a GPS reading with a known point to see how far off it is.
To go the other way — from a start point, a distance and a bearing to a new point — use the destination point calculator. For the area of several corners, use area from coordinates.