<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Calculate GPS accuracy in meters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65155/calculate-gps-accuracy-in-meters</link><description>There are other GPS modules on the market which can give information like &amp;quot;the device is within 10 meters of the given coordinates&amp;quot;. Is there a way to either get this information from the nRF9160 or calculate it from the information it provides?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Aug 2020 07:07:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65155/calculate-gps-accuracy-in-meters" /><item><title>RE: Calculate GPS accuracy in meters</title><link>https://devzone.nordicsemi.com/thread/267123?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 07:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a743178-1aa2-4c81-8fe9-01b0e963451c</guid><dc:creator>Heidi</dc:creator><description>&lt;div&gt;Hi, yes you&amp;#39;re correct.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The accuracy field of the PVT notification gives an estimated standard deviation for the fix accuracy, so if the accuracy field is e.g. 5, the fix is estimated to be within 5 meters with 67% probability.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Heidi&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate GPS accuracy in meters</title><link>https://devzone.nordicsemi.com/thread/267041?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 16:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6bf998-d34a-43d2-b605-7138ca18ad3a</guid><dc:creator>Chris Burns</dc:creator><description>&lt;p&gt;Apparently the information I was looking for is already in the PVT notification. It&amp;#39;s the accuracy field and the comment in nrf_socket.h is:&lt;/p&gt;
&lt;p&gt;float accuracy; /**&amp;lt; Accuracy (2D 1-sigma) in meters. */&lt;/p&gt;
&lt;p&gt;So that field will give the accuracy to within one standard deviation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate GPS accuracy in meters</title><link>https://devzone.nordicsemi.com/thread/266836?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 20:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64fa5da8-79cd-49e0-b88c-30b1b4e53386</guid><dc:creator>Chris Burns</dc:creator><description>&lt;p&gt;I think I need to clarify what I meant. I&amp;#39;m looking for a way to know the possible error in the latitude and longitude given by the GPS when it gets a fix.&lt;/p&gt;
&lt;p&gt;For example, when the NRF_GNSS_PVT_FLAG_FIX_VALID_BIT is set, is there a calculation that tell what the accuracy is (like this fix is within 5 meters or within 3 meters)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate GPS accuracy in meters</title><link>https://devzone.nordicsemi.com/thread/266770?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 13:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a191af6-d782-4604-8dfc-8219628a460c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;According to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fgps.html&amp;amp;cp=2_0_0_7_0&amp;amp;anchor=gps_elspec"&gt;GPS Elspecs&lt;/a&gt;, the accuracy of the GPS is between 3 - 5 meters. So the application could compare the coordinates from a GPS fix and the specific coordinates you want to investigate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t look like we have anything like this already programmed in NCS, so you would have to implement it yourself. To learn more about calculating the distance between two coordinates, take a look at &lt;a href="https://www.movable-type.co.uk/scripts/latlong.html"&gt;this page&lt;/a&gt;&amp;nbsp;or &lt;a href="https://www.geeksforgeeks.org/program-distance-two-points-earth/"&gt;this page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>