diff --git a/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java b/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java index 6707683ea8..e1d222d0a1 100644 --- a/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java +++ b/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java @@ -287,45 +287,45 @@ public class TanluManager implements IMogoMarkerClickListener, } if (voiceData != null) { - mTanluModelData.queryRodeInfo(mContext, mKeywords, voiceData, new RoadInfoCallback() { - @Override - public void onQueryRoadInfoSuccess(@NotNull List roadInfoList) { - if (roadInfoList == null || (roadInfoList != null && roadInfoList.size() <= 0)) { - if ( TextUtils.equals(mKeywords,"附近")) { - speakFailVoice("未发现附近的特殊路况"); - } else { - speakFailVoice("未发现" + mKeywords + "附近的特殊路况"); - } - moveToMarcker(currentLat, currentLon); - return; - } - Logger.d(TAG, "onQueryRoadInfoSuccess roadInfoList.size() = " + roadInfoList.size() - + " >>currentLat = " + currentLat + " -->currentLon = " + currentLon); - MogoLocation location = TanluServiceManager.getLocationClient().getLastKnowLocation(); - if (location != null) { - mCity = location.getCityName(); - } - addMarkersAction((List) roadInfoList, currentLat, currentLon); - } - - @Override - public void onQueryRoadInfoFail(@NotNull String msg, int code) { - Logger.e(TAG, "onQueryRoadInfoFail ----- msg = " + msg); -// speakFailVoice(searchfaileVoiceStrings[1]); - if (TextUtils.equals(mKeywords,"附近")) { - speakFailVoice("未发现附近的特殊路况"); - } else { - speakFailVoice("未发现" + mKeywords + "附近的特殊路况"); - } - moveToMarcker(currentLat, currentLon); - } - - @Override - public void onLocatSuccess(double lat, double lon) { - currentLat = lat; - currentLon = lon; - } - }); +// mTanluModelData.queryRodeInfo(mContext, mKeywords, voiceData, new RoadInfoCallback() { +// @Override +// public void onQueryRoadInfoSuccess(@NotNull List roadInfoList) { +// if (roadInfoList == null || (roadInfoList != null && roadInfoList.size() <= 0)) { +// if ( TextUtils.equals(mKeywords,"附近")) { +// speakFailVoice("未发现附近的特殊路况"); +// } else { +// speakFailVoice("未发现" + mKeywords + "附近的特殊路况"); +// } +// moveToMarcker(currentLat, currentLon); +// return; +// } +// Logger.d(TAG, "onQueryRoadInfoSuccess roadInfoList.size() = " + roadInfoList.size() +// + " >>currentLat = " + currentLat + " -->currentLon = " + currentLon); +// MogoLocation location = TanluServiceManager.getLocationClient().getLastKnowLocation(); +// if (location != null) { +// mCity = location.getCityName(); +// } +// addMarkersAction((List) roadInfoList, currentLat, currentLon); +// } +// +// @Override +// public void onQueryRoadInfoFail(@NotNull String msg, int code) { +// Logger.e(TAG, "onQueryRoadInfoFail ----- msg = " + msg); +//// speakFailVoice(searchfaileVoiceStrings[1]); +// if (TextUtils.equals(mKeywords,"附近")) { +// speakFailVoice("未发现附近的特殊路况"); +// } else { +// speakFailVoice("未发现" + mKeywords + "附近的特殊路况"); +// } +// moveToMarcker(currentLat, currentLon); +// } +// +// @Override +// public void onLocatSuccess(double lat, double lon) { +// currentLat = lat; +// currentLon = lon; +// } +// }); } }