opt Block Strategy ave speed

This commit is contained in:
tongchenfei
2020-12-28 17:00:29 +08:00
parent 003e085aa8
commit f339a765ee

View File

@@ -142,7 +142,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)