diff --git a/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/model/PM2DrivingModel.kt b/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/model/PM2DrivingModel.kt index 00f84ecbd1..7957587ced 100644 --- a/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/model/PM2DrivingModel.kt +++ b/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/model/PM2DrivingModel.kt @@ -33,7 +33,7 @@ import mogo.telematics.pad.MessagePad class PM2DrivingModel private constructor() { private var mContext: Context? = null - private var mLocation: MessagePad.GnssInfo? = null + private var mLocation: MogoLocation? = null private var mRoutePoints = mutableListOf() private var routesResult: PM2RoutesResult? = null @@ -83,14 +83,15 @@ class PM2DrivingModel private constructor() { } private val mMapLocationListener: IMoGoChassisLocationGCJ02Listener = - object : IMoGoChassisLocationGCJ02Listener { - override fun onChassisLocationGCJ02(gnssInfo: MessagePad.GnssInfo?) { - if (null == gnssInfo) return - mLocation = gnssInfo + object : IMoGoChassisLocationGCJ02Listener{ + override fun onChassisLocationGCJ02(mogoLocation: MogoLocation?) { + if (null == mogoLocation) return + mLocation = mogoLocation updateSpeed() } - } + + } private fun updateSpeed() { //todo 传入速度 mDrivingInfoCallback?.updateSpeed(0)