@@ -181,7 +181,7 @@ public class SmallMapDirectionView
|
||||
|
||||
@Override
|
||||
public void onLocationChanged(@Nullable MogoLocation location) {
|
||||
Logger.d(TAG, "onCarLocationChanged2 :" + location.getLatitude()+":"+location.getLongitude());
|
||||
//Logger.d(TAG, "onCarLocationChanged2 :" + location.getLatitude()+":"+location.getLongitude());
|
||||
LatLng currentLatLng = new LatLng(location.getLatitude(), location.getLongitude());
|
||||
//更新车辆位置
|
||||
if (mCarMarker != null) {
|
||||
|
||||
@@ -62,7 +62,7 @@ class MogoTrafficLightManager : IMogoCarLocationChangedListener2 {
|
||||
roadIDResult = it
|
||||
},
|
||||
{
|
||||
Logger.e(TAG, "request road id error : $it")
|
||||
Logger.w(TAG, "request road id error : $it")
|
||||
})
|
||||
}
|
||||
}, {
|
||||
|
||||
@@ -40,7 +40,7 @@ class TrafficLightNetWorkModel {
|
||||
}
|
||||
}
|
||||
onSuccess {
|
||||
if (it.result != null) {
|
||||
if (it?.result != null) {
|
||||
if (it.result.rsCrossId.isNotEmpty() && !it.result.rectLatLngs.isNullOrEmpty()) {
|
||||
onSuccess.invoke(it.result)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user