Quantcast
Channel: calculating distance in React Native - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Shivam for calculating distance in React Native

$
0
0

Today I faced the same issue, What I found is, If you execute tests "inside your office" using physical device, the GPS locator can be disturbed by external things like walls, or by the simple reason that you are trying to do this operation "indoor" and, generally, this should be executed outdoor.

My suggestion is: try geolocation using enableHighAccuracy set to true, if this fail with location request timed out error (in the office this can fail), retry with false, this should work, in my case it did.

Hope this will help you.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>