fix aicloud of loctype problem

This commit is contained in:
zhongchao
2022-04-14 13:16:25 +08:00
parent 1d8ba2834d
commit a6c6c0f96e
2 changed files with 14 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ class MoGoMapDataCollectProvider : IMoGoMapDataCollectProvider, OnTaskListener,
location.latitude,
location.bearing,
location.speed,
location.provider == "GPS_SELF")
location.provider == "GPS_RTK")
}

View File

@@ -157,7 +157,19 @@ public class ObjectUtils {
return null;
}
MogoLocation location = new MogoLocation();
location.setLocType(1); // 定位类型
//agps 高德
//agps_rtk 高德-高精
if (aLocation.getProvider().isEmpty()) {
location.setLocType(0);
}
if ("AGPS".equals(aLocation.getProvider())) {
location.setLocType(1); // 定位类型为高德坐标(网路或者硬件定位)
} else if ("AGPS_RTK".equals(aLocation.getProvider())) {
location.setLocType(1000); // 定位类型为WGS84进行转译的坐标
} else {
location.setLocType(0);
}
location.setSatellite(4);
location.setSpeed(aLocation.getSpeed());
location.setLatitude(aLocation.getLat());