下沉经纬度公用信息实体

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-09-17 17:40:45 +08:00
parent b8b5cf29a7
commit 4556727d23
185 changed files with 241 additions and 270 deletions

View File

@@ -1,6 +1,6 @@
package com.mogo.module.navi.bean;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.search.inputtips.MogoTip;
import com.mogo.module.navi.constants.DataConstants;

View File

@@ -3,7 +3,7 @@ package com.mogo.module.navi.manager;
import android.content.Context;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.service.MogoServicePaths;
import com.mogo.service.module.IMogoAddressManager;
import com.mogo.service.module.IMogoSearchManager;

View File

@@ -1,12 +1,9 @@
package com.mogo.module.navi.manager;
import android.content.Context;
import android.content.Intent;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.mogo.commons.AbsMogoApplication;
import com.mogo.map.MogoLatLng;
import com.mogo.module.common.map.CustomNaviInterrupter;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.module.navi.constants.SearchApisHolder;
import com.mogo.service.MogoServicePaths;
import com.mogo.service.module.IMogoSearchManager;

View File

@@ -1,7 +1,7 @@
package com.mogo.module.navi.manager
import androidx.fragment.app.Fragment
import com.mogo.map.MogoLatLng
import com.mogo.eagle.core.data.map.MogoLatLng
import com.mogo.module.common.map.MapCenterPointStrategy
import com.mogo.module.common.map.Scene
import com.mogo.module.navi.bean.EntityConvertUtils
@@ -64,7 +64,7 @@ object MogoSearchManagerImpl {
/**
* 路径规划
*/
fun calculatePath(destination: MogoLatLng?) {
fun calculatePath(destination: com.mogo.eagle.core.data.map.MogoLatLng?) {
destination?.let {
beforePushFragment()
MapCenterPointStrategy.setMapCenterPointByScene(SearchApisHolder.getUiControllerApis(), Scene.CALCULATE_PATH)

View File

@@ -6,7 +6,7 @@ import androidx.annotation.NonNull;
import androidx.lifecycle.LifecycleOwner;
import com.mogo.commons.mvp.Presenter;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.location.MogoLocation;
import com.mogo.map.search.geo.MogoPoiItem;
import com.mogo.map.search.poisearch.IMogoPoiSearch;

View File

@@ -7,10 +7,9 @@ import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import com.mogo.commons.debug.DebugConfig
import com.mogo.commons.voice.AIAssist
import com.mogo.commons.voice.IMogoVoiceCmdCallBack
import com.mogo.map.MogoLatLng
import com.mogo.eagle.core.data.map.MogoLatLng
import com.mogo.map.marker.IMogoMarker
import com.mogo.map.marker.IMogoMarkerClickListener
import com.mogo.map.marker.MogoMarkerOptions
@@ -44,7 +43,7 @@ class CategorySearchFragment : BaseFragment(), CategoryView, IMogoVoiceCmdCallBa
private var addMarkers: ArrayList<IMogoMarker> = ArrayList()
private var arrayList = ArrayList<MogoMarkerOptions>()
private var locationList = ArrayList<MogoLatLng>()
private var locationList = ArrayList<com.mogo.eagle.core.data.map.MogoLatLng>()
private lateinit var cmds: ArrayList<String>

View File

@@ -8,7 +8,7 @@ import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import com.mogo.commons.voice.AIAssist
import com.mogo.commons.voice.IMogoVoiceCmdCallBack
import com.mogo.map.MogoLatLng
import com.mogo.eagle.core.data.map.MogoLatLng
import com.mogo.map.navi.IMogoNaviListener
import com.mogo.map.navi.MogoCalculatePath
import com.mogo.module.navi.R
@@ -143,7 +143,7 @@ class ChoosePathFragment : BaseFragment(), IMogoNaviListener, IMogoVoiceCmdCallB
return R.layout.fragment_search_category
}
private var mogoTip: MogoLatLng? = null
private var mogoTip: com.mogo.eagle.core.data.map.MogoLatLng? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
mogoTip = arguments?.getParcelable(AMapConstants.KEY_PARCELABLE)
@@ -289,7 +289,7 @@ class ChoosePathFragment : BaseFragment(), IMogoNaviListener, IMogoVoiceCmdCallB
const val TAG: String = "ChoosePathFragment"
fun newInstance(searchPoi: MogoLatLng): Fragment {
fun newInstance(searchPoi: com.mogo.eagle.core.data.map.MogoLatLng): Fragment {
val bundle = Bundle()
bundle.putParcelable(AMapConstants.KEY_PARCELABLE, searchPoi)
val choosePathFragment = ChoosePathFragment()

View File

@@ -5,7 +5,7 @@ import android.os.Bundle
import android.text.TextUtils
import android.view.View
import androidx.fragment.app.Fragment
import com.mogo.map.MogoLatLng
import com.mogo.eagle.core.data.map.MogoLatLng
import com.mogo.map.listener.IMogoMapListener
import com.mogo.map.marker.IMogoMarker
import com.mogo.map.marker.MogoMarkerOptions
@@ -61,10 +61,10 @@ class SettingAddressFragment : BaseFragment(), IMogoGeoSearchListener {
private var selectPoi: SearchPoi? = null
private var mapListener: IMogoMapListener = object : MogoMapListenerAdapter() {
override fun onMapChanged(
latLng: MogoLatLng?,
zoom: Float,
tilt: Float,
bearing: Float) {
latLng: com.mogo.eagle.core.data.map.MogoLatLng?,
zoom: Float,
tilt: Float,
bearing: Float) {
super.onMapChanged(latLng, zoom, tilt, bearing)
selectPoi = EntityConvertUtils.geoToPoi(latLng?.lat ?: 0.0, latLng?.lon ?: 0.0, type)
val mogoRegeocodeQuery = MogoRegeocodeQuery()