opt Block Strategy ave speed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user