增加疑似拥堵上报埋点

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

2
.idea/misc.xml generated
View File

@@ -4,7 +4,7 @@
<asm skipDebug="false" skipFrames="false" skipCode="false" expandFrames="false" />
<groovy codeStyle="LEGACY" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
</project>

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")