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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -