<?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: Improving GPS accuracy in .NET MAUI mobile app in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1570944#M13208</link>
    <description>&lt;P&gt;I'm playing around with HorizontalAccuracy right now when saving my GPS coordinates to generate a track.&amp;nbsp; Currently I'm testing a Horizontal Accuracy of around 10.&amp;nbsp; I've noticed that when things are going well, HorizontalAccuracy is set to closer to 5.&amp;nbsp; Originally I had it set to 20, but then I get erratic behavior as you mentioned above.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 14:11:51 GMT</pubDate>
    <dc:creator>KarenRobine1</dc:creator>
    <dc:date>2024-12-23T14:11:51Z</dc:date>
    <item>
      <title>Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1563440#M13148</link>
      <description>&lt;P&gt;I have a mobile application built in .NET MAUI that has a hike tracking feature. Basically, the goal is to show the traversed path as a polyline on the map. This is the basic code I'm using to perform the calculation and do tracking using Maps SDK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;MapPoint mp = e.Position; // e = Esri.ArcGISRuntime.Location.Location from location changed event
mp = (MapPoint)GeometryEngine.Project(e.Position, SpatialReferences.WebMercator);
polylineBuilder.AddPoint(mp);
trackedHikePolylineGraphicsOverlay.Graphics.Add(new Graphic(polylineBuilder.ToGeometry()));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm essentially adding the user's current location from the location changed event to the polyline builder and updating the graphics overlay. Nothing complicated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that when this is tested in the field, I end up with wildly zigzagging polylines because location gets miscalculated at times by the GPS. How do ESRI apps and even apps like Strava track breadcrumb path and show that on a map without erratic lines? I realize it is not a hardware problem, because other tracking apps on the same device can record a reasonably well polyline for the same activity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 16:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1563440#M13148</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2024-11-29T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1563514#M13149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="https://en.wikipedia.org/wiki/Differential_GPS" target="_self"&gt;DGPS&lt;/A&gt; (Differential GPS) to improve your accuracy. I think, you could simplify your GPS data as suggested &lt;A href="https://stackoverflow.com/questions/4480434/simplification-optimization-of-gps-track" target="_self"&gt;here&lt;/A&gt;. ArcGIS geoprocessing tool&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/cartography/simplify-line.htm" target="_self"&gt;Simplify Line&lt;/A&gt; can help you, but it needs standard or advanced license.&amp;nbsp;Ramer-Douglas-Peucker line simplification code you can find by web search or click on &lt;A href="https://rosettacode.org/wiki/Ramer-Douglas-Peucker_line_simplification" target="_self"&gt;link&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 08:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1563514#M13149</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-11-30T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1563965#M13152</link>
      <description>&lt;P&gt;You can use the HorizontalAccuracy property of the location to check if you're getting a bad measurement and ignore it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 03:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1563965#M13152</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-12-03T03:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1564553#M13157</link>
      <description>&lt;P&gt;Thank you! This is incredibly helpful. There is indeed a Simplify method for Maps SDK for .NET I could use in conjunction with the RDP algorithm.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 05:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1564553#M13157</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2024-12-04T05:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1564781#M13158</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1052"&gt;@dotMorten_esri&lt;/a&gt;&amp;nbsp;. Is HorizontalAccuracy something I have to test on the field with trial and error to see what the appropriate threshold is for different devices and platforms? Or is there a generally accepted accuracy to check against?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 17:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1564781#M13158</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2024-12-04T17:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1564924#M13159</link>
      <description>&lt;P&gt;Yes that's one thing you can do. You can also look at the `AdditionalSourceProperties` dictionary which will tell you a little more about how the location was obtained. See&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/android/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.Location.AdditionalSourceProperties.html#Esri_ArcGISRuntime_Location_Location_AdditionalSourceProperties" target="_blank"&gt;https://developers.arcgis.com/net/api-reference/api/android/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.Location.AdditionalSourceProperties.html#Esri_ArcGISRuntime_Location_Location_AdditionalSourceProperties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Specifically the 'positionSource' key. Sometimes you might get a wifi or IP based location that you would want to ignore depending on use-case (note though that that should only happen if the device haven't been able to get a good GPS position in a while or the GPS position is estimated to be really really poor).&lt;BR /&gt;&lt;BR /&gt;I would be careful with using simplify. It could preserve points that are very much off-center and should at least be weighted against estimated accuracy.&lt;BR /&gt;&lt;BR /&gt;On a last note the Maps SDK doesn't do anything "smart" with the location (apart from switching between IP/Wifi and GPS positions as needed). It reports the GPS location as-received from the device.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 22:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1564924#M13159</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-12-04T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Improving GPS accuracy in .NET MAUI mobile app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1570944#M13208</link>
      <description>&lt;P&gt;I'm playing around with HorizontalAccuracy right now when saving my GPS coordinates to generate a track.&amp;nbsp; Currently I'm testing a Horizontal Accuracy of around 10.&amp;nbsp; I've noticed that when things are going well, HorizontalAccuracy is set to closer to 5.&amp;nbsp; Originally I had it set to 20, but then I get erratic behavior as you mentioned above.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 14:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/improving-gps-accuracy-in-net-maui-mobile-app/m-p/1570944#M13208</guid>
      <dc:creator>KarenRobine1</dc:creator>
      <dc:date>2024-12-23T14:11:51Z</dc:date>
    </item>
  </channel>
</rss>

