android - Fix location marker jumps while not moving -


i'm working androids fusedlocationapi receive periodically location updates , display current location on googlemaps.
know accuracy can inaccurate time time , make big sidesteps on way down street.

locationrequest locationrequest = new locationrequest(); locationrequest.setinterval(5 * 1000); locationrequest.setfastestinterval(2 * 1000); locationrequest.setpriority(locationrequest.priority_high_accuracy); locationrequest.setsmallestdisplacement(5);  locationservices.fusedlocationapi.requestlocationupdates(this.mgoogleapiclient, locationrequest, this); 

when standing still still locations high accuracy value , wrong location (yeah, normal i'm aware of that).
googlemaps does not change location marker, updates accuracy radius around point.

so how know when should move marker next location instead of moving on every update (what produces lot of jumps in building)? not every location has speed value use.

anyone fought problem , fixed it?


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -