react-native-geolocation-service icon indicating copy to clipboard operation
react-native-geolocation-service copied to clipboard

bad accuracy

Open hoseinfo opened this issue 3 years ago • 9 comments

hi I test with highaccuracy:true

and I don't get good accuracy....

does any body has any solution for it?

hoseinfo avatar Nov 29 '21 15:11 hoseinfo

why dont you try enableHighAccuracy prop

cybergears avatar Dec 01 '21 14:12 cybergears

same issue i tried enableHighAccuracy: true and the position error is about 2km

artstylee avatar Jan 23 '22 11:01 artstylee

same here. Accuracy is poor. { distanceFilter:0.01,interval:5000, enableHighAccuracy: true, timeout: 5000, maximumAge: 10000 }

Want to know if it supports high accurate coords, example inside a room?

Edited: Inside a room, I am getting position err ~ 20-30 mts

gouravrc avatar May 12 '22 06:05 gouravrc

same issue i tried { enableHighAccuracy: true, timeout: 15000, maximumAge: 10000 } miss position up to 2km

tri-hariyadi avatar May 28 '22 04:05 tri-hariyadi

I dont know why people are complaining about accuracy. I use this lib in my project and accuracy is very high.

use enableHighAccuracy: true

and ACCESS_FINE_LOCATION permission in android manifest file

cybergears avatar May 28 '22 06:05 cybergears

I managed to fix the issue by removing the ACCESS_COARSE_LOCATION permission from the AndroidManifest.xml file

Lavhe avatar Jun 22 '22 18:06 Lavhe

I tried switching to this lib, in production the accuracy dropped a lot (around 300m). Removing ACCESS_COARSE_LOCATIN improved slightly but still ~120m. So I reverted back to https://github.com/react-native-community/react-native-geolocation version 2 (accuracy 15m) Also, the "react-native-geolocation" has a new maintener which is great news.

Accuracy where average calculated on 1 millions users for a few days each times.

HugoGresse avatar Dec 01 '22 09:12 HugoGresse

Yes I agree to what @HugoGresse suggested, I was getting accuracy of 2000, after switching to react-native-geolocation, I'm getting accuracy of 25 which is better

lutakyn avatar Mar 21 '24 14:03 lutakyn

@react-native-community/geolocation has a new v3 version which also bring the Play geolocation API. I did not test the differences though, will do later this year, but I had no issue when updating the library from v2 to v3 in term of accuracy or compatibility (still runing the Android Legacy geolocation API)

HugoGresse avatar Mar 21 '24 14:03 HugoGresse