<?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: Is it possible to retrieve device current location (lat/lng) xamarin.android in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688992#M8704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look of the sample link below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/android/sample-code/displaydevicelocation.htm" title="https://developers.arcgis.com/net/latest/android/sample-code/displaydevicelocation.htm"&gt;Display device location—ArcGIS Runtime SDK for .NET Samples | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, MapView.LocationDisplay.Position() gives the MapPoint in lat/lng coordinate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyMapView.LocationDisplay.Location&lt;BR /&gt;{Esri.ArcGISRuntime.Location.Location}&lt;BR /&gt; Course: 0&lt;BR /&gt; HorizontalAccuracy: 2990&lt;BR /&gt; IsLastKnown: false&lt;BR /&gt; &lt;STRONG&gt;Position: {MapPoint[X=-117.1809, Y=34.0508, Z=0, Wkid=4326]}&lt;/STRONG&gt;&lt;BR /&gt; Timestamp: {10/11/2018 7:48:37 PM +00:00}&lt;BR /&gt; Velocity: 0&lt;BR /&gt; VerticalAccuracy: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2018 19:56:16 GMT</pubDate>
    <dc:creator>NagmaYasmin</dc:creator>
    <dc:date>2018-10-11T19:56:16Z</dc:date>
    <item>
      <title>Is it possible to retrieve device current location (lat/lng) xamarin.android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688991#M8703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just looking for a little example code to get started. Need location services. Visual Studio 2017; Xamarin Android project with fragments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 18:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688991#M8703</guid>
      <dc:creator>rextanner</dc:creator>
      <dc:date>2018-10-11T18:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to retrieve device current location (lat/lng) xamarin.android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688992#M8704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look of the sample link below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/android/sample-code/displaydevicelocation.htm" title="https://developers.arcgis.com/net/latest/android/sample-code/displaydevicelocation.htm"&gt;Display device location—ArcGIS Runtime SDK for .NET Samples | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, MapView.LocationDisplay.Position() gives the MapPoint in lat/lng coordinate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyMapView.LocationDisplay.Location&lt;BR /&gt;{Esri.ArcGISRuntime.Location.Location}&lt;BR /&gt; Course: 0&lt;BR /&gt; HorizontalAccuracy: 2990&lt;BR /&gt; IsLastKnown: false&lt;BR /&gt; &lt;STRONG&gt;Position: {MapPoint[X=-117.1809, Y=34.0508, Z=0, Wkid=4326]}&lt;/STRONG&gt;&lt;BR /&gt; Timestamp: {10/11/2018 7:48:37 PM +00:00}&lt;BR /&gt; Velocity: 0&lt;BR /&gt; VerticalAccuracy: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 19:56:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688992#M8704</guid>
      <dc:creator>NagmaYasmin</dc:creator>
      <dc:date>2018-10-11T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to retrieve device current location (lat/lng) xamarin.android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688993#M8705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I'm just getting rolling with Visual Studio / C# / Android. I couldn't quite work out how the example you sent was getting me to the solution. I came up with this and it works (as good as big-G from my limited experiment):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private Esri.ArcGISRuntime.Location.LocationDataSource _arcDS;&lt;BR /&gt; private Esri.ArcGISRuntime.Location.Location _arcLoc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// then in&amp;nbsp;the hosting class ctor:&lt;/P&gt;&lt;P&gt;_arcDS = new Esri.ArcGISRuntime.Location.SystemLocationDataSource();&lt;/P&gt;&lt;P&gt;_arcDS.LocationChanged += ezriHandler;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// later in StartTheFunAsync():&lt;BR /&gt; Task t = _arcDS.StartAsync();&lt;BR /&gt; await t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// and finally:&lt;/P&gt;&lt;P&gt;public void ezriHandler(object sender, Esri.ArcGISRuntime.Location.Location esriL)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_arcLoc = esriL;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine("$$$$ Esri Lat:" + _arcLoc.Position.Y);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine("$$$$ Esri Lng:" + _arcLoc.Position.X);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Awesome-sauce!" As far as I can tell, it doesn't use any credits.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 22:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-retrieve-device-current-location/m-p/688993#M8705</guid>
      <dc:creator>rextanner</dc:creator>
      <dc:date>2018-10-11T22:23:16Z</dc:date>
    </item>
  </channel>
</rss>

