<?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 Lat/Long of current Location in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429460#M5204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;best external GPS devices that requires the least code are ones that will drive Windows' built-in location service, and the built-in SystemLocationDataSource will "just work".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you have an external GPS that uses serial port or bluetooth to send NMEA messages, you can use a library I wrote on the side. You'll see how that's hooked up to ArcGIS Runtime in the documentation here:&amp;nbsp;&lt;A class="link-titled" href="https://dotmorten.github.io/NmeaParser/concepts/ArcGISRuntime.html" title="https://dotmorten.github.io/NmeaParser/concepts/ArcGISRuntime.html"&gt;Creating a location provider for ArcGIS Runtime SDK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note: We hope to have built-in support for NMEA in an upcoming release really soon)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2020 16:11:53 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2020-06-05T16:11:53Z</dc:date>
    <item>
      <title>Get Lat/Long of current Location</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429458#M5202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a Windows 10 WPF .Net Core data collection application that incorporates a map. What I would like to be able to do is to collect the GPS point for the current location and use that to store the Lat/Long in a data record. All the examples I have seen thus far have used Windows Location service to display the location on the map via the LocationDataSource. I haven't seen a way to get the current location directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How can I get the Lat/Long of the current location along with horizontal error and such on a button click?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Does an attached external GPS receiver automatically work with Windows Location Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Does anyone have any recommendations for Bluetooth or USB GPS receivers for use with ARCgis Runtime for WPF .Net Core?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 17:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429458#M5202</guid>
      <dc:creator>KennethSmith1</dc:creator>
      <dc:date>2020-06-03T17:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Lat/Long of current Location</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429459#M5203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MapView has a &lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_UI_LocationDisplay.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_UI_LocationDisplay.htm"&gt;LocationDisplay Class&lt;/A&gt;&amp;nbsp;property.&amp;nbsp; Using this property you can turn on/off location collection and also adjust properties associated to displaying the location.&amp;nbsp; The class includes&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_UI_LocationDisplay_LocationChanged.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_UI_LocationDisplay_LocationChanged.htm"&gt;LocationDisplay.LocationChanged Event&lt;/A&gt;&amp;nbsp;which is what you tie into to get the current location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API provides a default implementation of LocationDataSource,&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Location_SystemLocationDataSource.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Location_SystemLocationDataSource.htm"&gt;SystemLocationDataSource Class&lt;/A&gt;.&amp;nbsp;&amp;nbsp;In Windows this ties into the location service.&amp;nbsp; On a non-gps device this would just be a location determined from the IP, on a device with onboard GPS it will use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External GPS behave differently so there is no one size fits all answer.&amp;nbsp; There are USB external devices that will tie into the location service and can just be used as is with the default implementation.&amp;nbsp; Other would require you to create your own implementation of &lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Location_LocationDataSource.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Location_LocationDataSource.htm"&gt;LocationDataSource Class&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;-Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 22:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429459#M5203</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-06-03T22:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get Lat/Long of current Location</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429460#M5204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;best external GPS devices that requires the least code are ones that will drive Windows' built-in location service, and the built-in SystemLocationDataSource will "just work".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you have an external GPS that uses serial port or bluetooth to send NMEA messages, you can use a library I wrote on the side. You'll see how that's hooked up to ArcGIS Runtime in the documentation here:&amp;nbsp;&lt;A class="link-titled" href="https://dotmorten.github.io/NmeaParser/concepts/ArcGISRuntime.html" title="https://dotmorten.github.io/NmeaParser/concepts/ArcGISRuntime.html"&gt;Creating a location provider for ArcGIS Runtime SDK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note: We hope to have built-in support for NMEA in an upcoming release really soon)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 16:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-lat-long-of-current-location/m-p/429460#M5204</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-06-05T16:11:53Z</dc:date>
    </item>
  </channel>
</rss>

