-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very large GPS position variation #80
Comments
Well, for one thing, all your config params are incorrectly capitalized. Your entire config is essentially invalid. eg: Where did you get the idea to do that?
|
Excuse. I am from Brazil and these errors pointed out because of Google Translate.
|
If the plugin is working fine without |
Actually my problem is with the variation of the Lat and Lng I get. Even stopped. Anyway, thanks for the reply. I'll look elsewhere. |
I have the same problem and no solution, I have some variations on my ponga I think this happens when the cell phone has a low signal and it does not know the correctly position |
@danielaraujo do you find a solution to reduce the variations on your gps points |
The only thing you can do is set |
@christocrazy do u know some algorithm to apply, as you know sometimes the gps fails and register bad location. I would know if you know some solution to remove or detect which of that point are unusual on my tracking path |
This s the purpose of location attribute |
Any location problems are due to device and/or network environment. Here's a ~300km round trip with my Google Pixel last weekend: not a single poor location. |
I created an algorithm to solve this issue -- I might need to tweak the maximum accepted delta but here is what I did:
|
Why are you not simply checking the location accuracy? "Weird" locations likely have a very low accuracy (e.g. > 1000) |
I always have my accuracy on -1 when I encounter the issue. |
I'm not talking about desiredAccuracy, I said location accuracy. |
There is nothing to complain about with locations having accuracy 3-5 meters. Those are perfectly fine locations |
Your plugin is amazing and I would give up entirely on using Ionic if it didn't exist. So thank you. I was just sharing my solution. |
It's available for React Native and pure native apps too. |
And what is the corresponding location accuracy for "locations in red"? There's no way it's 3-5 meters. There's nothing to be done in the plugin to solve that. It's due to the device and/or network environment. It could be power-saving mode on the device being engaged. |
thanks @christocracy ur plugin is perfect i just wanted to know if there was something to do for fix that. |
|
my acurracy form some points in red is to accuracy";d:16.699999999999999. so the value of accurracy means that if the value is high like this accuracy";d:16.699999999999999 |
Personally, I wouldn't call a location with accuracy |
@christocracy I'm building something that will be used indoors a lot. So instead of comparing the actual latitude and longitude, I see now I could've just checked that the accuracy is within 5 meters before adding a breadcrumb. Oh well, I guess it's the same thing. |
Indoors, the best accuracy you'll get is |
thanks @christocracy for your help. |
I mean it still depends on what type of roof you're under, right? It seems to work fine for me in most buildings. |
GPS receiver on mobile devices is a microwave radio receiver. It doesn't take much to block a low amplitude / high frequency signal from space. Put a GPS Test app on your device an see for yourself how many satellites your device "locks-on to". |
Maybe if you're under a grass roof, you might get a signal. Concrete or metal? forget it. |
To be fair, I tried it in a very hipster building in LA that I work at. The roof might be made of recycled cereal boxes... |
Being next to windows will help with "seeing" GPS satellites. |
to solve this issue , in ionic if you are using javascript google maps API in console.cloud.google.com, after you get the locations use Snap to roads API in console.cloud.google.com to draw the real path and then you will get the real path on the route and you dont get points outside the path like you had. |
Good Morning,
I'm using in my app the cordova-plugin-googlemaps along with background-geolocation. When I try to use background-geolocation positioning to get a route next to the google API, it often has a very large variation and ends up tracing the route on the way to the opposite side. Using the sample it always stays inside the track where I'm walking.
My configuration looks like this:
Is there anything I can do to improve accuracy and it only returns me to the position within the path I'm actually in at the moment?
The text was updated successfully, but these errors were encountered: