增加疑似拥堵上报埋点

This commit is contained in:
tongchenfei
2020-11-09 23:10:35 +08:00
parent e3aa0709e6
commit 4fcf7383a3
2 changed files with 3 additions and 1 deletions

View File

@@ -141,6 +141,8 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
val p = TanluUploadParams(IMogoTanluProvider.TYPE_BLOCK, IMogoTanluProvider.UPLOAD_FROM_STRATEGY_BLOCK_AUTO)
val latLon = MogoLatLng(lat, lon)
p.location = latLon
// 疑似拥堵埋点上报
apis.analyticsApi.track("v2x_share_autoUpload", mapOf("type" to 1))
apis.tanluApi.uploadRoadCondition(p)
} else {
Logger.d(TAG, "根据距离,没有判定为拥堵, tripDistance: $tripDistance, frontDistance: $frontDistance, currentSpeed: $currentSpeed")