From c5166f3f8f1dcff78a5429aa1244ceab16fa76a9 Mon Sep 17 00:00:00 2001 From: donghongyu Date: Thu, 9 Feb 2023 19:47:00 +0800 Subject: [PATCH] =?UTF-8?q?[dev=5Farch=5Fopt=5F3.0]=20[Change]=20[=201?= =?UTF-8?q?=E3=80=81=E5=85=BC=E5=AE=B9socket=E4=B8=8A=E4=BC=A0=E6=97=B6?= =?UTF-8?q?=E5=80=99=E7=9A=84locType=EF=BC=8C=E8=A6=81=E4=B8=8Drtk?= =?UTF-8?q?=E7=9A=84=E5=9D=90=E6=A0=87=E4=BC=9A=E8=A2=AB=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=20]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../location/MoGoLocationDispatcher.kt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/MoGoLocationDispatcher.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/MoGoLocationDispatcher.kt index 1f8d1db634..0e808b8708 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/MoGoLocationDispatcher.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/MoGoLocationDispatcher.kt @@ -16,7 +16,9 @@ import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02Lis import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager import com.mogo.eagle.core.function.call.obu.CallerObuLocationWGS84ListenerManager import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr -import com.mogo.eagle.core.utilcode.util.* +import com.mogo.eagle.core.utilcode.util.CoordinateTransform +import com.mogo.eagle.core.utilcode.util.TimeUtils +import com.mogo.eagle.core.utilcode.util.Utils import com.mogo.support.obu.model.MogoObuHvBasicsData import mogo.telematics.pad.MessagePad @@ -86,6 +88,11 @@ object MoGoLocationDispatcher : lastGnssLocation.lastReceiveTime = TimeUtils.getNowMills() // 将高德中的一些用于业务的数据进行融合,例如:CityCode、address等 mapLocation?.let { + //agps 高德 + //agps_rtk 高德-高精 + lastGnssLocation.locType = 1000 // 定位类型为WGS84进行转译的坐标 + lastGnssLocation.satellite = 4 + lastGnssLocation.cityName = it.city lastGnssLocation.cityCode = it.cityCode lastGnssLocation.provider = it.provider @@ -142,6 +149,9 @@ object MoGoLocationDispatcher : lastGaoDeLocation.satelliteTime = it.time lastGaoDeLocation.lastReceiveTime = TimeUtils.getNowMills() + lastGnssLocation.locType = 1 // 定位类型为高德坐标(网路或者硬件定位) + lastGnssLocation.satellite = 4 + lastGaoDeLocation.cityName = it.city lastGaoDeLocation.cityCode = it.cityCode lastGaoDeLocation.provider = it.provider @@ -225,6 +235,11 @@ object MoGoLocationDispatcher : // 将高德中的一些用于业务的数据进行融合,例如:CityCode、address等 mapLocation?.let { + //agps 高德 + //agps_rtk 高德-高精 + lastOBULocation.locType = 1000 // 定位类型为WGS84进行转译的坐标 + lastOBULocation.satellite = 4 + lastOBULocation.cityName = it.city lastOBULocation.cityCode = it.cityCode lastOBULocation.provider = it.provider