opt Block Strategy ave speed

This commit is contained in:
tongchenfei
2020-12-28 16:58:13 +08:00
parent 51b4163000
commit 539d5a78c2

View File

@@ -138,7 +138,7 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
}
val ave = sum / speedCacheList.size
Logger.d(TAG, "平均速度为: $ave")
blockFromSpeed = true
blockFromSpeed = ave <= 10
// 上报平均速度
val location = ServiceApisManager.serviceApis.mapServiceApi.getSingletonLocationClient(context).lastKnowLocation
latLonFromSpeed = MogoLatLng(location.latitude, location.longitude)