<?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: Poor Accuracy of Locate Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249972#M79981</link>
    <description>&lt;P data-unlink="true"&gt;&amp;gt; I believe someone did put in a support ticket on this for me at our organization.&lt;/P&gt;&lt;P data-unlink="true"&gt;Hi&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/194227"&gt;@ZacharyHart&lt;/a&gt;&amp;nbsp; I haven't seen a support ticket, you might want to double check on your end. We took a close look at the Locate Widget and confirmed it is using the browser's built-in &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API" target="_self"&gt;W3C Geolocation API&lt;/A&gt; via the &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition" target="_self"&gt;getCurrentPosition()&lt;/A&gt; method. Because the widget only acts as a pass-thru for the geolocation results, the points you are seeing are exactly what is provided by the browser's own API. The best way to get better geolocation capabilities are to either use the native device operating system APIs or build additional software functionality to help normalize the raw location results.&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;TL;DR; &lt;/STRONG&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;Differences in geolocation could potentially be explained by variations in how the Geolocation API options (maximumAge, timeout, enableHighAccuracy) are configured on the widget via the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#geolocationOptions" target="_self"&gt;geolocationOptions&lt;/A&gt; property. Generally speaking, the Geolocation API does a decent job for consumer-grade geolocation use cases. However, here are some examples of things that affect accuracy:&lt;/P&gt;&lt;P data-unlink="true"&gt;* GPS variations - not all chips are the same, plus GPS satellite signal strength fluctuates and is affected by your surroundings (hills, mountains, buildings, power lines, trees, storm clouds, car roof, etc)&lt;/P&gt;&lt;P data-unlink="true"&gt;* OS and browser variations in geolocation implementation&lt;/P&gt;&lt;P data-unlink="true"&gt;* browser or device caching of geolocation data&lt;/P&gt;&lt;P data-unlink="true"&gt;* nearby WiFi routers, cellular service trilateration since these signals also fluctuate continuously&lt;/P&gt;&lt;P data-unlink="true"&gt;* Use of a VPN&lt;/P&gt;&lt;P data-unlink="true"&gt;* Combinations of all of the above&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 17:03:58 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2023-01-20T17:03:58Z</dc:date>
    <item>
      <title>Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1094485#M74509</link>
      <description>&lt;P&gt;We are using the Locate Widget in our app and we have noticed that the locate widget isn't very accurate at times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tested using the sample Locate Widget from the ArcGIS app and we received similar results that we wish to document and would like to petition the developers to make this more accurate.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry there is no sound in the video as I'm just doing a screen recording with my iPhone, but I'm walking up at a college campus and using the Locate Widget, near the end of my attached video I tap the widget, it takes me close to where I'm at, and then tap it again before it actually gets to where I'm at.&lt;/P&gt;&lt;P&gt;We are using this Locate Widget in our new app. In our old app, we were using just HTML Geolocation API and built it out ourselves and it seems to be more accurate than the current widget.&amp;nbsp; We would love to use ArcGIS API for our app, but again, its accuracy is a little lacking.&lt;/P&gt;&lt;P&gt;Would appreciate any help on this.&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6270488555001w250h540r438" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6270488555001" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6270488555001w250h540r438');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6270488555001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1094485#M74509</guid>
      <dc:creator>MichaelOakeson</dc:creator>
      <dc:date>2021-09-01T16:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1094571#M74511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/516721"&gt;@MichaelOakeson&lt;/a&gt;&amp;nbsp;the widget actually uses the browser's geolocation API to get the current position. If there's an accuracy issue it is most likely related to the device and the browser implementation of the geolocation API, accuracy can also be affected by your cellular carrier, your WiFi settings and bluetooth settings. If you are testing and seeing a difference in location between the geolocation API and the widget's reported location then please open a support ticket so we can get a thorough evaluation of the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 18:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1094571#M74511</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-09-01T18:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192491#M77928</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;I believe this post by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/516721"&gt;@MichaelOakeson&lt;/a&gt;&amp;nbsp;has been overlooked. There are indeed issues with the accuracy of your web GPS widgets. I have tested them vs Mapbox GL JS (which also uses the browser's geolocation API) on the same phone, same location, same browser, and have gotten far superior results. The Mapbox one is how I would expect a GPS tracker to behave. The ESRI track widget bounces all over the place and cannot seem to maintain a consistent location. It is interesting because the WebAppBuilder on JS API V3 does not seem to have these major issues like the v4 one does.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491"&gt;@KellyHutchins&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 15:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192491#M77928</guid>
      <dc:creator>BobCowling2</dc:creator>
      <dc:date>2022-07-15T15:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192508#M77932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/564347"&gt;@BobCowling2&lt;/a&gt;&amp;nbsp;thanks for reaching out, can you please open a support ticket? That way they can gather all the necessary information from your set up. The bouncing around might be related to spurious location values not being filtered out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 15:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192508#M77932</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-07-15T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192527#M77935</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;I do not seem I have permissions to open a ticket but I did put in a bug report on this matter. Otherwise, we have a few threads in this community describing this issue over the past few years.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192527#M77935</guid>
      <dc:creator>BobCowling2</dc:creator>
      <dc:date>2022-07-15T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192621#M77942</link>
      <description>&lt;P&gt;Hi Bob, do you know if your organization has a tech support contract, and if there is someone else that can open a ticket for you? I'm not sure what a bug report is. This is one of those instances where we need to get tech support involved to capture detailed information about your configuration, your phone, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 21:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192621#M77942</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-07-15T21:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192733#M77946</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;I believe someone did put in a support ticket on this for me at our organization.&lt;/P&gt;&lt;P&gt;Do you believe this is not an issue with the widget itself but my phone? So far I experienced this on three different phones I have tested since last week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some testing this weekend on both a Pixel 4a and Samsung Galaxy S10, both in Google Chrome browser. Same issues on both phones with the GPS being inaccurate and not tracking my precise location correctly. On the pixel 4a I did notice when I started my RunKeeper app with the GPS active, the GPS location on the track widget was very accurate and followed my location perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying Mapbox on both phones, the locations were correct once again. So the question is, if both use the geolocation API why is Mapbox GL JS showing accurate results and not the ESRI track widget?&lt;/P&gt;&lt;P&gt;We really need a solution for our application that will follow the user around. I have read some of your blog posts, and from what I understand the Geoloaction API can be very accurate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: Also tried this with OpenLayers geolocation (&lt;A href="https://openlayers.org/en/latest/examples/geolocation.html" target="_blank"&gt;https://openlayers.org/en/latest/examples/geolocation.html&lt;/A&gt;). Was getting accuracy of 4 meters at times. Location was where I would expect it to be and tracked perfectly. Direct comparison to ArcGIS JS Geolocation was off by what I would say was at least 50 feet. So I am not sure what the problem is here exactly. I would be interested to know if you have a sample geolocation track widget with accuracy readout somewhere I can try without having to put it together myself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2022 19:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192733#M77946</guid>
      <dc:creator>BobCowling2</dc:creator>
      <dc:date>2022-07-17T19:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192973#M77950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/564347"&gt;@BobCowling2&lt;/a&gt;&amp;nbsp;Can you get us the support ticket number? Thanks for the additional info. We aren't sure yet where the issue is occuring. We compared code between our Widget and Mapbox GL JS. The only difference is we set high-accuracy by default:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#geolocationOptions" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#geolocationOptions&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1192973#M77950</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-07-18T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249923#M79973</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp; Any updates on this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 16:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249923#M79973</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2023-01-20T16:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249972#M79981</link>
      <description>&lt;P data-unlink="true"&gt;&amp;gt; I believe someone did put in a support ticket on this for me at our organization.&lt;/P&gt;&lt;P data-unlink="true"&gt;Hi&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/194227"&gt;@ZacharyHart&lt;/a&gt;&amp;nbsp; I haven't seen a support ticket, you might want to double check on your end. We took a close look at the Locate Widget and confirmed it is using the browser's built-in &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API" target="_self"&gt;W3C Geolocation API&lt;/A&gt; via the &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition" target="_self"&gt;getCurrentPosition()&lt;/A&gt; method. Because the widget only acts as a pass-thru for the geolocation results, the points you are seeing are exactly what is provided by the browser's own API. The best way to get better geolocation capabilities are to either use the native device operating system APIs or build additional software functionality to help normalize the raw location results.&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;TL;DR; &lt;/STRONG&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;Differences in geolocation could potentially be explained by variations in how the Geolocation API options (maximumAge, timeout, enableHighAccuracy) are configured on the widget via the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#geolocationOptions" target="_self"&gt;geolocationOptions&lt;/A&gt; property. Generally speaking, the Geolocation API does a decent job for consumer-grade geolocation use cases. However, here are some examples of things that affect accuracy:&lt;/P&gt;&lt;P data-unlink="true"&gt;* GPS variations - not all chips are the same, plus GPS satellite signal strength fluctuates and is affected by your surroundings (hills, mountains, buildings, power lines, trees, storm clouds, car roof, etc)&lt;/P&gt;&lt;P data-unlink="true"&gt;* OS and browser variations in geolocation implementation&lt;/P&gt;&lt;P data-unlink="true"&gt;* browser or device caching of geolocation data&lt;/P&gt;&lt;P data-unlink="true"&gt;* nearby WiFi routers, cellular service trilateration since these signals also fluctuate continuously&lt;/P&gt;&lt;P data-unlink="true"&gt;* Use of a VPN&lt;/P&gt;&lt;P data-unlink="true"&gt;* Combinations of all of the above&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 17:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249972#M79981</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-01-20T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249994#M79982</link>
      <description>&lt;P&gt;The solution to my problem from ESRI support was that the ArcGIS JS API was not honoring the &lt;SPAN&gt;Geolocation API options (maximumAge, timeout, enableHighAccuracy)&lt;/SPAN&gt; as the default values, mainly enableHighAccuracy. It specified in esri's documentation that high accuracy was set to true by default. This was found not to be the case by one of the developers. The solution is to manually specify enable high accuracy to true in the geolocation widget's options. I believe a bug report was submitted on this. I am not positive if this is something that was fixed in the 4.25 update though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 18:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1249994#M79982</guid>
      <dc:creator>BobCowling2</dc:creator>
      <dc:date>2023-01-20T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1250008#M79984</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/564347"&gt;@BobCowling2&lt;/a&gt;&amp;nbsp;thanks for posting the solution!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 17:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1250008#M79984</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2023-01-20T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Poor Accuracy of Locate Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1250024#M79985</link>
      <description>&lt;P&gt;I just double checked the code, the enableHighAccuracy property is set to true in the ArcGIS JS SDK by default at 4.25. But YMMV based on the items I mention above.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 18:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/poor-accuracy-of-locate-widget/m-p/1250024#M79985</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-01-20T18:12:33Z</dc:date>
    </item>
  </channel>
</rss>

