add trace
This commit is contained in:
@@ -38,4 +38,8 @@ public class TanluConstants {
|
||||
//分享/上报按钮点击 from=1 手动点击 from=2 语音打开
|
||||
public static final String LAUNCHER_SHARE_CLICK = "Launcher_Share_Click";
|
||||
public static final String CARNET_USER_UPLOAD = "CarNet_user_upload";
|
||||
|
||||
//语音搜索
|
||||
public static final String CARNET_VOICE_SEARCH = "CarNet_Voice_Search";
|
||||
|
||||
}
|
||||
|
||||
@@ -715,7 +715,6 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* C位事件,如何获取数据,需要有默认数据
|
||||
* 如果只有一个数据,不显示上下切换按钮,没有数据显示空页面
|
||||
*/
|
||||
@@ -848,14 +847,14 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
/**
|
||||
* 接收到分享对应数据打点
|
||||
*
|
||||
* @param event TODO
|
||||
* @param event TODO
|
||||
*/
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onMarkerInfo(final MarkerInfo event) {
|
||||
if (event == null) {
|
||||
return;
|
||||
}
|
||||
Log.d(TAG, "onMarkerInfo event.type =" + event.type + " >>event.lat = " + event.lat + " >>event.lon = " + event.lon + " >>event.imageUrl =" + event.imageUrl);
|
||||
Log.d(TAG, "onMarkerInfo event.type =" + event.type + " >>event.lat = " + event.lat + " >>event.lon = " + event.lon + " >>event.imageUrl =" + event.imageUrl);
|
||||
|
||||
String poiType = "";
|
||||
if (event.type.equals("1")) { //上报路况
|
||||
@@ -1043,6 +1042,9 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
MogoLatLng latLng = new MogoLatLng(lat, lon);
|
||||
mMApUIController.moveToCenter(latLng);
|
||||
|
||||
inputlon = lon;
|
||||
inputlat = lat;
|
||||
|
||||
Logger.d(TAG, "getVoiceControlRoadData lat =" + lat + ">>>lon =" + lon + ">>>cityCode= " + cityCode + " >>>adCode = " + adCode);
|
||||
mTanluModelData.getVoiceControlRoadData(keywords, cityCode, lon, lat, adCode, new VoiceSearchCallback() {
|
||||
@Override
|
||||
@@ -1067,6 +1069,9 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
List<Information> informationList = o.getResult().getInformations();
|
||||
//清除探路之前的数据
|
||||
mMarkerManager.removeMarkers(TanluConstants.MODEL_NAME);
|
||||
//添加埋点数据
|
||||
datalon = informationList.get(0).lon;
|
||||
datalat = informationList.get(0).lat;
|
||||
|
||||
//打点
|
||||
ArrayList<MogoMarkerOptions> optionList = new ArrayList<>();
|
||||
@@ -1230,9 +1235,22 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
AIAssist.getInstance(getContext()).speakTTSVoice(searchingVoiceStrings[random.nextInt(3)], null);
|
||||
}
|
||||
|
||||
|
||||
Double inputlon = 0.0;//经度
|
||||
Double inputlat = 0.0; //维度
|
||||
Double datalon = 0.0; //经度
|
||||
Double datalat = 0.0; //维度
|
||||
|
||||
//上报语音搜索 TODO
|
||||
private void trackVoiceSearch(int type) {
|
||||
|
||||
Map<String, Object> properties = new HashMap<>();
|
||||
properties.put("type", type);
|
||||
properties.put("searchtext", mKeywords);
|
||||
properties.put("inputlon", inputlon);
|
||||
properties.put("inputlat", inputlat);
|
||||
properties.put("datalon", datalon);
|
||||
properties.put("datalat", datalat);
|
||||
mAnalytics.track(TanluConstants.CARNET_VOICE_SEARCH, properties);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user