Compute the Haversine forward solution for geodesy.

Timothy Rice c4c1d98820 Fix wrong word hace 2 años
.gitignore 6dac8b7757 Initial commit hace 2 años
LICENSE.md 6dac8b7757 Initial commit hace 2 años
Makefile 6dac8b7757 Initial commit hace 2 años
README.md c4c1d98820 Fix wrong word hace 2 años
geotaxis.c 6dac8b7757 Initial commit hace 2 años

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.