[Proj] C API to calculate distances

Oliver Eichler oliver.eichler at dspsolutions.de
Mon Jan 22 03:14:10 PST 2007


Hi,

I wonder if there is a C API to calculate the real great circle distance
of two points on a WGS84 ellipsoid. I know there is "geod" on the
command line. I had a look at it's source code however this looked quite
complicated. As this must be a standard problem isn't there something like;

distance(p1,p1, d, dir)

p1:  point 1
p2:  point 2
d:   distance
dir: direction in degrees





Oliver



More information about the Proj mailing list