I have three points, p1
, p2
, and p3
, and I'm trying to find the distance between p2
and p3
. I have the latitude and longitude coordinates for p1
and p2
and have the p3 - p1
distance in meters and bearing of p1
. How would I find the p2 - p3
distance?
My thoughts were to get the azimuth from the geographiclib.geodesic.Geodesic.Inverse()
function which could then be converted to a bearing. Thus, I could define p2
and p3
on the polar coordinate system (with p1
being at the origin) and thus find the distance. However, I'm unsure about how to go about this. I see quite a few posts on "UTM" which seems to also be a Cartesian grid based system, but I'm very new to this and am unsure how to proceed.
geographiclib.geodesic.Geodesic.Direct()
that would solve the problem, but it requires azimuth. I think I should be able to convert heading to azimuth to solve this given they seem to measure similar things, but I'm unsure about how exactly to do this