Question

Hello I am developing a realtime gps tracker using this library

It gets data from GPS satellites in a period of time..if no gps results is received it then request from cell towers/wifi in a period of time also. My problem is..My gps location is fluctuating so bad. Here is a photo below:

enter image description here

Please if anyone there has used this library. Or can recommend to me how to ged rid of this fluctuations. Please help me out..Thanks

Was it helpful?

Solution

GPS can fluctuate when the device moves slowly or stands still.
Switching betweeen GPS and Network Location is not a good idea, (network will introduce jumps of e.g up to 1000m or eveen more)
If you have GPS always use GPS.

If fluctuations are caused by bad GPS signal, you can check the Location.getHoricontalAccuracy(): ignore the location if the value is > 30m and you are using GPS only.

If fluctuation is caused by slow movement or stand still, make sure this is the case and ask again for that specific topic, or search SO.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top