<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Azimuth value from point A to point B in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644509#M7996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try using the method for calculate to get the azimuth between 2 point, but i am not understand these two functions:&lt;/P&gt;&lt;P&gt;private readonly LinearUnit _metersUnit;&lt;BR /&gt; private readonly AngularUnit _degreesUnit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code i try to implement, sorry i am new to c#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private void CreatePoints()&lt;BR /&gt; {&lt;BR /&gt; // Create a red circle simple marker symbol&lt;BR /&gt; SimpleMarkerSymbol redCircleSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.Circle, System.Drawing.Color.FromArgb(0xFF, 0xFF, 0x00, 0x00), 10);&lt;/P&gt;&lt;P&gt;MapPoint mapPoint1 = new MapPoint(-2.72, 56.065, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;MapPoint mapPoint2 = new MapPoint(-2.69, 56.065, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;// Create graphics and add them to graphics overlay&lt;BR /&gt; Graphic graphic = new Graphic(mapPoint1, redCircleSymbol);&lt;BR /&gt; _overlay.Graphics.Add(graphic);&lt;/P&gt;&lt;P&gt;graphic = new Graphic(mapPoint2, redCircleSymbol);&lt;BR /&gt; _overlay.Graphics.Add(graphic);&lt;/P&gt;&lt;P&gt;GeodeticDistanceResult distance = GeometryEngine.DistanceGeodetic(mapPoint1, mapPoint2, _metersUnit, _degreesUnit, GeodeticCurveType.Geodesic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2019 06:40:29 GMT</pubDate>
    <dc:creator>MohamadFathin</dc:creator>
    <dc:date>2019-05-29T06:40:29Z</dc:date>
    <item>
      <title>Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644506#M7993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know how can i get a azimuth value between 2 points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 08:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644506#M7993</guid>
      <dc:creator>MohamadFathin</dc:creator>
      <dc:date>2019-05-24T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644507#M7994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/extensions/aviation-charting/calculating-a-bearing-distance.htm" title="http://desktop.arcgis.com/en/arcmap/latest/extensions/aviation-charting/calculating-a-bearing-distance.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Calculating a bearing distance—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://itstillworks.com/calculate-azimuth-excel-8760124.html" title="https://itstillworks.com/calculate-azimuth-excel-8760124.html" rel="nofollow noopener noreferrer" target="_blank"&gt;How to Calculate Azimuth in Excel | It Still Works&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you can script in Excel this is a custom function I use for determining Azimuths..&lt;/P&gt;&lt;P&gt;I use it in excel like this... =Azimuth(cell with Latitude1, cell with Longitude1, cell with Latitude1, cell with Longitude2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eg.&amp;nbsp; =Azimuth(A1,B1,A2,B2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Function &lt;SPAN class="token function"&gt;Azimuth&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lat1 As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat2 As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lon1 As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lon2 As Single&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; As Single

Dim X1 As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; X2 As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Y As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dX As Single&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dY As Single

With Application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WorksheetFunction
    X1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Radians&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lat1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    X2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Radians&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lat2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Radians&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon2 &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; lon1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
End With

    dX &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Cos&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;X1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Sin&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;X2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Sin&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;X1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Cos&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;X2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Cos&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    dY &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Cos&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;X2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Sin&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


With Application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WorksheetFunction
    Azimuth &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Degrees&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Atan2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dX&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dY&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
End With

End Function&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644507#M7994</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-12-12T03:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644508#M7995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Geometry_GeometryEngine_DistanceGeodetic.htm"&gt;GeometryEngine.DistanceGeodetic&lt;/A&gt;&lt;/STRONG&gt; method. The result, a &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Geometry_GeodeticDistanceResult.htm"&gt;GeodeticDistanceResult&lt;/A&gt;&lt;/STRONG&gt;, includes&amp;nbsp;the azimuths between the two points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 15:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644508#M7995</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-05-24T15:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644509#M7996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try using the method for calculate to get the azimuth between 2 point, but i am not understand these two functions:&lt;/P&gt;&lt;P&gt;private readonly LinearUnit _metersUnit;&lt;BR /&gt; private readonly AngularUnit _degreesUnit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code i try to implement, sorry i am new to c#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private void CreatePoints()&lt;BR /&gt; {&lt;BR /&gt; // Create a red circle simple marker symbol&lt;BR /&gt; SimpleMarkerSymbol redCircleSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.Circle, System.Drawing.Color.FromArgb(0xFF, 0xFF, 0x00, 0x00), 10);&lt;/P&gt;&lt;P&gt;MapPoint mapPoint1 = new MapPoint(-2.72, 56.065, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;MapPoint mapPoint2 = new MapPoint(-2.69, 56.065, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;// Create graphics and add them to graphics overlay&lt;BR /&gt; Graphic graphic = new Graphic(mapPoint1, redCircleSymbol);&lt;BR /&gt; _overlay.Graphics.Add(graphic);&lt;/P&gt;&lt;P&gt;graphic = new Graphic(mapPoint2, redCircleSymbol);&lt;BR /&gt; _overlay.Graphics.Add(graphic);&lt;/P&gt;&lt;P&gt;GeodeticDistanceResult distance = GeometryEngine.DistanceGeodetic(mapPoint1, mapPoint2, _metersUnit, _degreesUnit, GeodeticCurveType.Geodesic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 06:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644509#M7996</guid>
      <dc:creator>MohamadFathin</dc:creator>
      <dc:date>2019-05-29T06:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644510#M7997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/350574" target="_blank"&gt;Mohamad Fathin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set them up something like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;readonly&lt;/SPAN&gt; LinearUnit _metersUnit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; LinearUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Meters&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;readonly&lt;/SPAN&gt; AngularUnit _degreesUnit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; AngularUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Degrees&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or just call DistanceGeodetic like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;GeodeticDistanceResult distance &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DistanceGeodetic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapPoint1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; mapPoint2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; LinearUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Meters&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; AngularUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Degrees&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; GeodeticCurveType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geodesic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Geometry_LinearUnits.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;LinearUnits&lt;/A&gt;&lt;/STRONG&gt; and &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Geometry_AngularUnits.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;STRONG&gt;AngularUnits&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644510#M7997</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-12-12T03:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644511#M7998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;A href="https://community.esri.com/migrated-users/2201"&gt;Nicholas Furness&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get below error, did you know how to settle this issues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;System.InvalidOperationException&lt;BR /&gt; HResult=0x80131509&lt;BR /&gt; Message=Invalid id for creating a unit&lt;BR /&gt; Source=Esri.ArcGISRuntime&lt;BR /&gt; StackTrace:&lt;BR /&gt; at Esri.ArcGISRuntime.Geometry.Unit.FromUnitId(Int32 unitId)&lt;BR /&gt; at Esri.ArcGISRuntime.Geometry.LinearUnits.get_Meters()&lt;BR /&gt; at ArcGISControl.MainWindow..ctor() in C:\Users\mfathin.CSYSINT\Documents\Visual Studio 2017\Projects\ArcGISControl\ArcGISControl\MainWindow.xaml.cs:line 32&lt;/P&gt;&lt;P&gt;Inner Exception 1:&lt;BR /&gt;DllNotFoundException: Unable to load DLL 'RuntimeCoreNet.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This my code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private readonly LinearUnit _metersUnit = LinearUnits.Meters;&lt;BR /&gt; private readonly AngularUnit _degreesUnit = AngularUnits.Degrees;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void CreatePoints()&lt;BR /&gt; {&lt;BR /&gt; // Create a red circle simple marker symbol&lt;BR /&gt; SimpleMarkerSymbol redCircleSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.Circle, System.Drawing.Color.FromArgb(0xFF, 0xFF, 0x00, 0x00), 10);&lt;/P&gt;&lt;P&gt;MapPoint mapPoint1 = new MapPoint(-2.72, 56.065, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;MapPoint mapPoint2 = new MapPoint(-2.69, 56.065, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;// Create graphics and add them to graphics overlay&lt;BR /&gt; graphic1 = new Graphic(mapPoint1, redCircleSymbol);&lt;BR /&gt; _overlay.Graphics.Add(graphic1);&lt;/P&gt;&lt;P&gt;graphic2 = new Graphic(mapPoint2, redCircleSymbol);&lt;BR /&gt; _overlay.Graphics.Add(graphic2);&lt;/P&gt;&lt;P&gt;//CreateLinePoint();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; GeodeticDistanceResult distance = GeometryEngine.DistanceGeodetic(mapPoint1, mapPoint2, _metersUnit, _degreesUnit, GeodeticCurveType.Geodesic);&lt;/P&gt;&lt;P&gt;textBox.Text = string.Format("Distance:{0} | Azimuth:{1}", _metersUnit.UnitType.ToString(), _degreesUnit.UnitType.ToString());&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 02:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644511#M7998</guid>
      <dc:creator>MohamadFathin</dc:creator>
      <dc:date>2019-05-30T02:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644512#M7999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the code locally and found the following worked for the basic use case of finding the azimuth values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;MapPoint mapPoint1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapPoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2.72&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;56.065&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Wgs84&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

MapPoint mapPoint2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapPoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2.69&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;56.065&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Wgs84&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

GeodeticDistanceResult distance &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DistanceGeodetic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapPoint1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; mapPoint2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; LinearUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Meters&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; AngularUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Degrees&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; GeodeticCurveType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geodesic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

MessageBox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="string token"&gt;"Distance:{distance.Distance} | Azimuth1:{distance.Azimuth1} | Azimuth2:{distance.Azimuth2}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is essentially what you had, and based on the error message you shared (&lt;SPAN style="background-color: #f6f6f6;"&gt;Unable to load DLL 'RuntimeCoreNet.dll': The specified module could not be found)&lt;/SPAN&gt;, this looks like a deployment issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you use Nuget to reference the ArcGIS Runtime SDK? Have you tried cleaning, clearing the bin/ and obj/ folders, and then rebuilding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644512#M7999</guid>
      <dc:creator>NathanCastle1</dc:creator>
      <dc:date>2021-12-12T03:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644513#M8000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I manage to get the azimuth from point 1 to point 2 and vice versa. One thing that i want to know. The azimuth start from 0 to 180 for clock wise and -0 to -180 for anti-clockwise.&amp;nbsp;After the 180 on clockwise the degree become negative that start with -180 until -0. How can i make azimuth from 0 to 360 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 01:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644513#M8000</guid>
      <dc:creator>MohamadFathin</dc:creator>
      <dc:date>2019-06-11T01:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Azimuth value from point A to point B</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644514#M8001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the value is &amp;lt; 0, add 360. -179 becomes 181. -10 becomes 350, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-azimuth-value-from-point-a-to-point-b/m-p/644514#M8001</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-06-11T13:01:47Z</dc:date>
    </item>
  </channel>
</rss>

