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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -