Menu

Calculate the position (LatLon)of a point between 2 LatLons.

Help
2019-01-31
2019-02-01
  • John Coffey

    John Coffey - 2019-01-31

    I am doing some calculations to determine when to initiate a turn between 2 flight legs (joined by a fly-by waypoint at the intersection). The turn is initiated at a distance DTA before the fly-by waypoint. DTA is a formula based off the current airspeed, a known bank angle and the change in course between these 2 legs. Given 2 LatLons - A and B - , I figure out this value DTA in meters, but I'm not sure which GeographicLib methods I should use to determine the value. I seem to recall GeodesicLine or Position or something along those (pun) lines being used for interpolating values along a line (I only need this one position away from (before) the joining way-point).

    Thanks

    John

     

    Last edit: John Coffey 2019-01-31
  • Charles Karney

    Charles Karney - 2019-02-01

    Use the Geodesic::InverseLine method to create a GeodesicLine
    representing the geodesic between your two points A and B. Then use the
    GeodesicLine::Position method to return the point a certain distance
    along the line from A.

     

Anonymous
Anonymous

Add attachments
Cancel