geoprimsField-grade geospatial math

Geodesic

Shortest paths on the ellipsoid.

These tools solve distance and course problems on the Earth: the shortest path between two points on the ellipsoid, the destination from a start, course, and distance, midpoints, waypoints, and where two paths cross, plus the spherical and Vincenty versions for comparison. Pilots, mariners, developers, and GIS analysts use them. Start with distance between two points, and compare it with the haversine tool to see how far the spherical shortcut drifts on your route. The pitfall is trusting the haversine formula for reported distances; it can be off by tenths of a percent.

Planning and education aid. Not for primary navigation. Full disclaimer

I want to work on a sphere: great-circle course, destination, or a point part way

I want to find the distance and courses between two points

I want to find where I end up from a start, course, and distance

I want to find points along the way

I want to check whether two lines cross, or find a route's highest point

Which distance method

  1. The geodesic tools solve the ellipsoid exactly (Karney's method) and are the ones to use. Distance between two points (geodesic)
  2. Haversine treats the earth as a sphere and can be off by about 0.5%; it is here for comparison with other software. Haversine distance (spherical)
  3. Vincenty's method is a legacy iteration that can fail near antipodal points; it is here to check older results. Vincenty inverse (legacy)

Guides that use these tools