I am using fused location provider with PRIORITY_HIGH_ACCURACY mode for location polling but sometimes it give wrong location speed like 77 m/s.Which is wrong so how can i achieve correct location speed?
Location Request:
mLocationRequest = new LocationRequest();
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
mLocationRequest.setInterval(6000);
mLocationRequest.setSmallestDisplacement(80);
Get speed in Location Update
Double lat = location.getLatitude();
Double lon = location.getLongitude();
float sd = (float) location.getAltitude();
// float ac_speed = sd;
//----- For Testing Purpose---------------//
float ac_speed = location.getSpeed();