opt map serach
This commit is contained in:
@@ -912,11 +912,11 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
Double longit; //经度
|
||||
Double lat; //维度
|
||||
if (mKeywords.equals("附近")) {
|
||||
Logger.d(TAG, "附近 ----2---");
|
||||
Logger.d(TAG, "附近 ----1---");
|
||||
longit = TanluServiceHandler.getLocationClient().getLastKnowLocation().getLongitude();
|
||||
lat = TanluServiceHandler.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
} else {
|
||||
Logger.d(TAG, "其他 --2----");
|
||||
Logger.d(TAG, "其他 --1----");
|
||||
longit = latLon.lng;
|
||||
lat = latLon.lat;
|
||||
}
|
||||
@@ -924,7 +924,17 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
Log.d(TAG, "setOnPoiSearchListener keywords =" + mKeywords + ">>longitude= " + longit + "--latitude" + lat);
|
||||
} else {
|
||||
Logger.e(TAG, "poi == null");
|
||||
speakFailVoice(searchfaileVoiceStrings[2]);
|
||||
Double longit; //经度
|
||||
Double lat; //维度
|
||||
if (mKeywords.equals("附近")) {
|
||||
Logger.d(TAG, "附近 ----2---");
|
||||
longit = TanluServiceHandler.getLocationClient().getLastKnowLocation().getLongitude();
|
||||
lat = TanluServiceHandler.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
getVoiceControlRoadData(mKeywords, lat, longit);
|
||||
} else {
|
||||
Logger.d(TAG, "其他 --2----");
|
||||
speakFailVoice(searchfaileVoiceStrings[2]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Logger.e(TAG, "poi search result p1 = " + p1);
|
||||
|
||||
Reference in New Issue
Block a user