mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

GPS inaccuracy

Open dasMalle opened this issue 7 years ago • 3 comments

Our problem is that the location is updating but the gps accuracy never gets better than 20m and the location is way off.

image

We are expecting raw gps updates to process further ourselves. Is it possible to get that with higher accuracy?

  • Unity version: 2018.3.0.2f
    • Scripting Runtime Version: 3.5
    • Scripting Backend: mono
    • Api Compatibility Level: net 2.0 subset
  • Mapbox SDK version: 2.0
  • The platform you're building to: android api 24
  • A description of what you're trying to do: Getting the gps location accuracy to <10m.
  • Steps to recreate the bug if appropriate: go outside

#1128

dasMalle avatar Jan 25 '19 13:01 dasMalle

We are expecting raw gps updates to process further ourselves.

As you are using the native Android location provider and Android API>=24 the data is as good (as raw 😄) as it gets, directly passed through from Android's GnssStatus.

A description of what you're trying to do: Getting the gps location accuracy to <10m.

You have to go outside onto a plain field. Seriously, in the city (skyscrapers and narrow streets) or indoors readings are always (very) bad, no matter what. To get a good signal you need an unobstructed view of as much of the sky as possible.

Some links to provide more detailed information about factors that influence accuracy:

  • https://wiki.openstreetmap.org/wiki/Accuracy_of_GPS_data
  • https://www.gps.gov/systems/gps/performance/accuracy/
  • https://cellphonetrackers.org/9-factors-affect-gps-positioning-accuracy.html

Additionally you might want to try the LocationProvider.scene https://github.com/mapbox/mapbox-unity-sdk/tree/develop/sdkproject/Assets/Mapbox/Examples/5_Playground/Scenes to get some more information about the GPS readings on your device.

wilhelmberg avatar Jan 26 '19 16:01 wilhelmberg

We’ve run several tests here with different phones and so far we’ve been able to narrow it down to being an issue with phones that are running Android Pie.

On phones with Android Nougat we could reach accuracies below 10 meters (6m to be exact). But on Android Pie it’s never below 20 meters.

phaax avatar Jan 30 '19 09:01 phaax

Also, in Android there is a setting to use higher precision localization somewhere hidden in preferences. Depends on the Android Version if and where that is. I think it is using open Wifi Spots to accomplish this. IOs doesn't have something like that as i remember.

MarjanPl avatar Mar 20 '19 15:03 MarjanPl