Page 1 of 1

How is accuracy calculated?

Posted: Thu Feb 08, 2024 8:40 pm
by IcAnHaZwIfI
I have looked through the java best I can, but was wondering if anyone knows the formulae for calculating accuracy?

Re: How is accuracy calculated?

Posted: Thu Feb 08, 2024 11:28 pm
by arkasha
it's provided by the GPS subsystem in Android (or in other providers) as "horizontal dilution of precision" in meters - this raw value is associated with each observation - it's not "calculated" in our system at all.

Re: How is accuracy calculated?

Posted: Fri Feb 09, 2024 1:37 am
by IcAnHaZwIfI
So it's merely the HDOP NMEA string? When it says say 73. That's a 73 possible meter area?

Thanks

Re: How is accuracy calculated?

Posted: Fri Feb 09, 2024 4:34 pm
by arkasha
what are you even talking about? you haven't explained:
- where you're seeing this value
- what you're expecting/assuming
- what you're trying to do.

Re: How is accuracy calculated?

Posted: Fri Feb 09, 2024 11:36 pm
by IcAnHaZwIfI
On the Wigle app, it showed 73 as the 'accuracy'. I have connected an external GPS unit and have recorded NMEA sentences trying to figure out the accuracy. But using python I have not gotten anywhere near that number.

So is the 73 a representation of meters, accuracy percentage, the HDOP value on a scale of 0 to 100?

Re: How is accuracy calculated?

Posted: Fri Feb 09, 2024 11:53 pm
by arkasha
We don't use that string that way anywhere in our UI.

When asking strangers to spend time and effort helping you on the internet, it's common courtesy to be precise and complete when asking your questions.
Please check out the documents for the Android Location core instead of asking open-ended questions.

-a

Re: How is accuracy calculated?

Posted: Sat Feb 10, 2024 12:28 am
by IcAnHaZwIfI
I appreciate your time.
If someone doesn't know an answer they don't know how to get to that answer do they?
"How is the accuracy number derived?" seemed fairly direct. But I get your point.

Re: How is accuracy calculated?

Posted: Sat Feb 10, 2024 12:37 am
by arkasha
Sure, but you haven't explained where the value you're asking about appears in the app after multiple go-arounds here on the forums, as well as opening a github issue (which is used to track feature requests and bugs, not bug people for info you could get from reading the code).

You literally haven't pointed out on which screen this number is present, and (as I mentioned) we don't say "accuracy" next to any numbers in the UI. You could also expand upon what's got you puzzled here rather than being oblique.

https://www.youtube.com/watch?v=2h8H3XEgWvw is a great presentation from a user on wardirving location accuracy. I'm guessing that what you want to know is something about why Android location is so precise compared to a random GPS - that's probably a combination of terrestrial signals assistance and multiple constellation support, but how would we know?

Re: How is accuracy calculated?

Posted: Sun Feb 11, 2024 3:04 am
by IcAnHaZwIfI
On https://api.wigle.net/csvFormat.html

Header
Description/Example
MAC,SSID,AuthMode,FirstSeen,Channel,RSSI,CurrentLatitude,CurrentLongitude,AltitudeMeters,AccuracyMeters,Type

As stated I am writing a python script. I plan on uploading to Wigle. How is the requested 'AccuracyMeters' derived?

On the github:
wiglewifiwardriving/src/main/java/net/wigle/wigleandroid/listener/GNSSListener.java
// check if accuracy is under 10 miles
boolean horrible = location.hasAccuracy() && location.getAccuracy() > 16000;
}
//Great in theory. Real-world testing of GPS accuracy makes this appear impractical
if (currentAccuracyMeters > 10 && currentAccuracyMeters > distanceMeters) {

From the NMEA sentances to the result of 'AccuracyMeters' how is that achieved, derived or calculated?

Re: How is accuracy calculated?

Posted: Sun Feb 11, 2024 5:18 pm
by arkasha
You'll have to go read the Android source code - not all Android devices use NMEA GPS signals, but some do.

You can also look at other programs such as Kismet and the jhewitt boards that synthesize CSV uploads.

Re: How is accuracy calculated?

Posted: Sun Feb 11, 2024 9:23 pm
by IcAnHaZwIfI
Will do. Thanks.