Is it possible to get the GPS accuracy in react native geolocation? i would like to know how many meters the result might differ in any given time, but I can not find if it is possible or not.
Yes. You can get accuracy by call getCurrentPosition() method of class Geolocation of React Native
This method allows us to request a user’s location at any time. It accepts three parameters — a success callback, an error callback, and a configuration object. The success callback will be passed an object that looks like:
{
"timestamp": 1484669056399.49,
"coords": {
"accuracy": 5,
"altitude": 0,
"altitudeAccuracy": -1,
"heading": -1,
"latitude": 37.785834,
"longitude": -122.406417,
"speed": -1
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With