我正在使用融合位置提供商使用 PRIORITY_HIGH_ACCURACY 模式进行位置轮询,但有时它会给出错误的位置速度,例如77 m / s。这是错误的,我怎样才能达到正确的定位速度?
位置请求:
mLocationRequest = new LocationRequest();
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
mLocationRequest.setInterval(6000);
mLocationRequest.setSmallestDisplacement(80);
在位置更新中加快速度
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();
答案 0 :(得分:0)
也许您正在使用提供精度较低的网络提供商,因此将其更改为GPS提供商以获得准确的值。