Reputation: 5655
What I am trying to do
Service
so that as long as application is running Location
can be retrievedProblem I am facing
Latitude
, Longitude
changes with different Accuracy
levelsLocation
in GoogleMap
it makes jump to very near by places being my zoom level 18.0f
mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentLatLon, 18.0f));
I have tried approaches mentioned in stackoverflow Link One and stackoverflow Link Two
But even though I am sitting in the same location and retrieving location in regular interval, the Lat and Lon differs like this , see the highlighted values at end of every lat lon:
Latitude: 12.8379283 Long: Longitude: 77.6647266
Latitude: 12.8379233 Long: Longitude: 77.6647368
Latitude: 12.8379285 Long: Longitude: 77.6647506
Latitude: 12.8379245 Long: Longitude: 77.6647546
but still every time the Accuracy
differs and Lat Lon slightly changes.
As my code trials are exactly same as mentioned in link's I am not just copy pasting here. How can this be resolved
Upvotes: 2
Views: 1550
Reputation: 6151
The accuracy of the GPS is not absolute, so even a static device will show different locations in successive readings. Try the following:
Upvotes: 5
Reputation: 1969
try to set Accuracy_HIGH and set time limit and distance limits.
try using google places fused api for location related work.
Refer here: -http://coderzpassion.com/android-location-using-google-play-services/
Upvotes: 0