[sonar] fix
This commit is contained in:
@@ -120,10 +120,12 @@ public class TrackManager {
|
||||
trackObj = new TrackObj(data,s2CellId,s2LatLng);
|
||||
}
|
||||
}
|
||||
mFilterTrafficData.put(uuid, trackObj.getCache());
|
||||
cellIdCaches.forcePut(uuid, trackObj.getCellIdPos());
|
||||
mMarkersCaches.put(uuid, trackObj);
|
||||
trafficDataUuid.add(uuid);
|
||||
if(trackObj != null){
|
||||
mFilterTrafficData.put(uuid, trackObj.getCache());
|
||||
cellIdCaches.forcePut(uuid, trackObj.getCellIdPos());
|
||||
mMarkersCaches.put(uuid, trackObj);
|
||||
trafficDataUuid.add(uuid);
|
||||
}
|
||||
//Log.i("costTime","" + (System.currentTimeMillis() - cost));
|
||||
}
|
||||
return mFilterTrafficData;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.smp;
|
||||
package com.mogo.eagle.core.function.utils;
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
|
||||
@@ -6,7 +6,6 @@ import java.util.List;
|
||||
|
||||
public class RoutePathConvertUtils {
|
||||
|
||||
|
||||
public List<MogoLatLng> routeList;
|
||||
|
||||
public int ROUTE_LEFT = 1;
|
||||
@@ -21,7 +20,7 @@ public class RoutePathConvertUtils {
|
||||
double v1x = latLng1.lat - latLng0.lat;
|
||||
double v1y = latLng1.lon - latLng0.lon;
|
||||
double v2x = latLng2.lat - latLng1.lat;
|
||||
double v2y = latLng2.lon - latLng2.lon;
|
||||
double v2y = latLng2.lon - latLng1.lon;
|
||||
double r = v1x* v2y - v1y*v2x;
|
||||
if (r > 0.0){
|
||||
route_direction = ROUTE_LEFT;
|
||||
Reference in New Issue
Block a user