Closed sammy532 closed 1 year ago
I am facing the same issue... any update guys?
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
I still have this issue. If someone has fixed it, please, let me know
Bump :) I have a similar issue. I live in the big city (Wrocław) and outside the accuracy is above 30 in BestForNavigation accuracy mode.
The accuracy "accuracy": 41.36199951171875" isn't a measurement of accuracy at all. Just by looking at this, it reads like a coordinate itself.
The link you provided stated that it is 1 is the lowest and 6 is the highest accuracy which is what you would want for something like google maps.
My results are:
{"coords":{"altitude":0,"altitudeAccuracy":-1,"latitude":39.785834,"accuracy":5,"longitude":-119.406417,"heading":-1,"speed":-1},"timestamp":1670879217716.303}
The -1 implies it could not get the information I believe. What I want is to get the altitude accuracy but I haven't been able to.
According to expo its, "The radius of uncertainty for the location, measured in meters. Can be null
on Web if it's not available." https://docs.expo.dev/versions/latest/sdk/location/
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.
The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.
A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.
"How to narrow down the source of an error"
You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.
That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.
This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.
Summary
I am using expo-location from here As per all the examples I read the following code should do the trick:
However, the location which is being fetched is really really not high. When I print it on the console I got:
As you can see
location.coords.accuracy
is quite high. As far as I understand, in order to get closer to my actual location I should make this number smaller.What I notice is that if I refresh the page several times, my location is more accurate. So I wrote the following "improvement":
Basically, I keep fetching the location, until
location.coords.accuracy <= 10
. Which indeed, does work, it gives me high and precise location this time.What is not cool about this solution is that I keep refreshing the page something like 40 times, which I find it unnecessary.
For sure, there must be some reason, why my location is not being fetched with high precision on the first place. Can someone advice?
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
5.2.0
Environment
expo-env-info 1.0.3 environment info: System: OS: Linux 4.15 Ubuntu 18.04.6 LTS (Bionic Beaver) Shell: 4.4.20 - /bin/bash Binaries: Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm npmPackages: expo: ^42.0.0 => 42.0.3 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: 0.63.4 => 0.63.4 react-native-web: ^0.11.7 => 0.11.7 react-navigation: ^4.4.4 => 4.4.4 npmGlobalPackages: expo-cli: 5.2.0 Expo Workflow: managed
Reproducible demo