Boost C++ Libraries: Ticket #12414: Geometry azimuth does not compile for geographic coordinates https://svn.boost.org/trac10/ticket/12414 <p> Calling <code>azimuth</code> to find the relative bearing of one point to another in geographic coordinates does not compile, e.g.: </p> <pre class="wiki"> typedef boost::geometry::cs::geographic&lt;boost::geometry::radian&gt; Wgs84Coords; typedef boost::geometry::model::point&lt;double, 2, Wgs84Coords&gt; GeographicPoint; typedef boost::geometry::srs::spheroid&lt;double&gt; SpheroidType; double azimuth(GeographicPoint boost_a, GeographicPoint boost_b) { return boost::geometry::detail::azimuth&lt;double&gt;(boost_a, boost_b); } </pre><p> or </p> <pre class="wiki"> double wgs84_azimuth(GeographicPoint boost_a, GeographicPoint boost_b) { SpheroidType spheriod(wgs84::a, wgs84::b); return boost::geometry::detail::azimuth&lt;double&gt;(boost_a, boost_b, spheriod); } </pre><p> The problem seems to be caused on line 52 of <code>azimuth.hpp</code> in geometry/algorithms/detail, it is: </p> <pre class="wiki"> return geometry::detail::vincenty_inverse&lt;ReturnType, false, true&gt; </pre><p> when it should be: </p> <pre class="wiki"> return geometry::detail::vincenty_inverse&lt;ReturnType, false, true&gt;::apply </pre><p> The amended line compiles and gives reasonable results. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12414 Trac 1.4.3 awulkiew Mon, 29 Aug 2016 10:17:51 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/12414#comment:1 https://svn.boost.org/trac10/ticket/12414#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.62.0</span> </li> </ul> <p> Thanks! </p> <p> Fix: <a class="ext-link" href="https://github.com/boostorg/geometry/commit/2442cdd1e3e618c243ded917a8050df10e684d64"><span class="icon">​</span>https://github.com/boostorg/geometry/commit/2442cdd1e3e618c243ded917a8050df10e684d64</a> </p> Ticket