How to compute a lat/long coordinate between two other coordinates using the Haversine formula

99 Views Asked by At

I have two sets of latitude and longitude coordinates, $A$ and $B$. I would like to "interpolate" another coordinate $C$ along the orthodromic line connecting $A$ and $B$ that is $d$ meters away from $A$ in the direction $B$.

How would I accomplish this?

1

There are 1 best solutions below

3
On

As you consider the orthodromic to join $A$ to $B$, you can compute along the great circle a point at distance $d$ from $A$ on that great circle. With the 3d coordinates of that point, you can compute latitude and longitude.