Skip to content
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

can we add a network provider in case of GPS is unavailable? #71

Open
FX-HAO opened this issue May 12, 2020 · 7 comments
Open

can we add a network provider in case of GPS is unavailable? #71

FX-HAO opened this issue May 12, 2020 · 7 comments

Comments

@FX-HAO
Copy link

FX-HAO commented May 12, 2020

Since GPS is accurate enough, can we add a network provider to improve accuracy in case of GPS is unavailable?

@FX-HAO
Copy link
Author

FX-HAO commented May 12, 2020

We can fuse location information from many different sources (such as GPS and Wi-Fi), does it help to improve accuracy? I guess it's what FusedLocationProvider does?

@Lezh1k
Copy link
Collaborator

Lezh1k commented May 12, 2020

FusedLocationProvider does all work, you don't need to fuse sensor data with that thing :)

@FX-HAO
Copy link
Author

FX-HAO commented May 12, 2020

But most of our phones (in china) don't have google play services installed :(

So I can just add this line and nothing else needed to be done, right?

m_locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, m_settings.gpsMinTime, m_settings.gpsMinDistance, this);

@Lezh1k
Copy link
Collaborator

Lezh1k commented May 13, 2020

I don't think that LocationManager.NETWORK_PROVIDER works with enough precision, sorry.
So if you don't have google play services installed, then you need to try our approach. But you need GPS at least + set of sensors (accelerometer, gyroscope, magnetometer) .

@FX-HAO
Copy link
Author

FX-HAO commented May 13, 2020

Yes, location information from network provider has less accuracy. But I'm thinking of a case that GPS is unavailable but the network works (I am not sure whether or not this could happen). In this case we are losing all location information without network provider.
And I think Kalman filter can correct these locations from network. Since their accuracy is bigger, the measurement is trusted more.

@Lezh1k
Copy link
Collaborator

Lezh1k commented May 13, 2020

It will work, I guess.
But you need to know, that noise integration produces very big error. So you can get very inaccurate position in this case.

@FX-HAO
Copy link
Author

FX-HAO commented May 13, 2020

Thanks for the suggestion! I'll give it a try and feed back :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants