microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
7.63k stars 1.61k forks source link

Testing the positon.xyz network location server - confusing #2422

Open Sapiosenses opened 1 week ago

Sapiosenses commented 1 week ago

Trying to ascertain the quality of network geolocation results sourced from the "positon.xyz" URL that Marvin shared on 6/15 . https://github.com/microg/GmsCore/issues/2237#issuecomment-2169261681

For both the devices I'm testing with, the microG utility is not showing any recent location requests from any of my geolocation apps with the exception of one maps app. Even though both SatStat and My Location report network location input with an estimated accuracy of 100m during the tests.

The "Request from Mozilla" switches are turned off in the microG utility and WiFi/Bluetooth scanning is enabled in ROM settings. One device is on A10 and the other on A14, different ROMs.

Is there some document somewhere that clearly explains the various forms of geolocation inputs to android, and how they interact with microG to get that data to the apps?

Depending on the device and ROM, SatStat lists:

The only app of all of these that shows as having made a location requestion to microG is Sygic.

So are the rest all bypassing fused location/network location and somehow getting the network location information elsewhere, or is this a display bug in the microG utility, or ?

Thanks

joelkoen commented 1 week ago

The Request from Mozilla switch also toggles the custom server. You will need to enable that to use positon.xyz. This toggle is a little confusing right now but I believe this will be made clearer in the future.

If this is turned off, your phone would likely be estimating a location using data it has passively collected, assuming you have Remember from GPS enabled in microG Location settings.

Sapiosenses commented 1 week ago

The Request from Mozilla switch also toggles the custom server. You will need to enable that to use positon.xyz.

Thanks. It was confusing to me because it was showing input from "network" (blue pin/circle) when no such source was actually enabled. (Mozilla switches OFF)

If this is turned off, your phone would likely be estimating a location using data it has passively collected, assuming you have Remember from GPS enabled in microG Location settings.

And this is probably the crux of it.

Because if the SatStat map display for network location source or My Location's "network" category are showing cached GPS--> RF emitter correlated location, instead of actually showing the network location's raw input, this makes it impossible to actually know how accurate or innaccurate the live network data source is.

With the old GmsCore architecture it was very easy to compare these network geolocation sources because at the bottom of the page for each UNLP backend it would display the estimated geocoordinates in the form of a street address generated by Nominatum.

With this system, I cannot distinguish between a local cached address (like we used to get from the DejaVu or LocalNLP UNLP backends) and one coming from an external network source. (like we used to get from the other traditional UNLP backends like Apple, Mozilla, GSM, WiFi, Baidu etc)

There IS a color code in the SatStat map for "passive" inputs. (Green color, but this only shows up in the map legend for 2 of the 3 devices I'm testing here, I assume it's ROM dependent) But neither of my 2 devices that have it show anything in the map with that color code.

Lastly, I still don't know where the Fused provider comes into the picture. I saw this show up in the SatStat legend for one of my devices in the past (probably the A14 device) but as of today it's nowhere to be seen on the legend or map on any of them.

I always thought that support for fused location was necessary in order for microG to provide location input to the OS, but none of my microG devices here have ever shown anything correlating to that color in the SatStat map.

Maybe I'll ping the SatStat dev and see if I can get more info from them about it.