Compute the Haversine forward solution for geodesy.

Timothy Rice c4c1d98820 Fix wrong word 2 years ago
.gitignore 6dac8b7757 Initial commit 2 years ago
LICENSE.md 6dac8b7757 Initial commit 2 years ago
Makefile 6dac8b7757 Initial commit 2 years ago
README.md c4c1d98820 Fix wrong word 2 years ago
geotaxis.c 6dac8b7757 Initial commit 2 years ago

README.md

Geotaxis

Compute the geodetic forward solution, i.e. the destination given a starting point, bearing and distance.

There are multiple algorithms for this, and there is a bit of a trade off involved in deciding the best one for a given task. We use Haversine as it is fast, reasonably accurate, and doesn't have Vincenty convergence issues.

Usage

geotaxis LATITUDE LONGITUDE DISTANCE BEARING

Arguments:

  • All arguments will be parsed as doubles, i.e. use 30.5 not 30°30'0".
  • BEARING is degrees deasil (i.e. clockwise) from North.
  • DISTANCE is in kilometres.