merge road cache
This commit is contained in:
@@ -188,8 +188,7 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
|
||||
|
||||
|
||||
final long start = System.currentTimeMillis();
|
||||
|
||||
double[] matchedPoint = SnapshotSetDataDrawer.getInstance().matchRoad( recognizedListResult.lon,
|
||||
double[] matchedPoint = SnapshotSetDataDrawer.getInstance().matchRoad( recognizedListResult.uuid, recognizedListResult.lon,
|
||||
recognizedListResult.lat,
|
||||
recognizedListResult.heading,
|
||||
true
|
||||
|
||||
@@ -208,14 +208,14 @@ class BaseDrawer {
|
||||
* @param isRtk
|
||||
* @return
|
||||
*/
|
||||
public double[] matchRoad( double lon, double lat, double angle, boolean isRtk ) {
|
||||
public double[] matchRoad( String id, double lon, double lat, double angle, boolean isRtk ) {
|
||||
final long start = System.currentTimeMillis();
|
||||
double[] matchRoad = MogoApisHandler.getInstance()
|
||||
.getApis()
|
||||
.getMapServiceApi()
|
||||
.getMapUIController()
|
||||
.matchRoad( lon, lat, angle, true, isRtk );
|
||||
Log.i( "timer-matchRoad", "cost " + ( System.currentTimeMillis() - start ) + "ms" );
|
||||
.matchRoad( id, lon, lat, angle, true, isRtk );
|
||||
Log.i("timer-matchRoad", "cost " + (System.currentTimeMillis() - start) + "ms");
|
||||
return matchRoad;
|
||||
}
|
||||
|
||||
|
||||
@@ -208,7 +208,8 @@ public class SimpleHandlerThreadPool {
|
||||
}
|
||||
}
|
||||
|
||||
double[] matchedPoint = SnapshotSetDataDrawer.getInstance().matchRoad( cloudRoadData.getWgslon(),
|
||||
double[] matchedPoint = SnapshotSetDataDrawer.getInstance().matchRoad( cloudRoadData.getUniqueKey(),
|
||||
cloudRoadData.getWgslon(),
|
||||
cloudRoadData.getWgslat(),
|
||||
cloudRoadData.getHeading(),
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user