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

getPosition geolocation is not precise

Open emanuelesalati opened this issue 4 years ago • 2 comments

Hi, i have a problem: i use react-native-geolocation-service for geolocation. Sometimes, but not always, the geolocation is not precise, the first call always, ( accuracy is more variable i don't understand the value ) why?

This is my code:

Geolocation.getCurrentPosition( currentLocation => { const { coords } = currentLocation; console.log("coords: ", coords); },error => { console.log(error, 'error') }, { accuracy : 'high', enableHighAccuracy: true, timeout: 15000, maximumAge: 10000, distanceFilter: 0, forceRequestLocation: true }

Can you please any suggestion?

Emanuele Salati

emanuelesalati avatar Jul 16 '21 15:07 emanuelesalati

I often see the same thing. The first call gets a good accuracy 5-10 meters. Then for some reason it gets a terrible accuracy. It seems to me that the first call fetches the "fine" location, and then it gets the "coarse" location.

ahron1 avatar Jul 22 '21 10:07 ahron1

I always seem to get bad accuracy on Android but on iPhone, it works ok. Not sure what is happening.

botondus avatar Nov 08 '21 10:11 botondus