[6.5.0][道路事件] 部分代码提交
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.mogo.map
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.map.entities.Lane
|
||||
import com.mogo.map.entities.RoadInfo
|
||||
import com.zhidaoauto.map.data.road.CenterLine
|
||||
|
||||
interface IMogoData {
|
||||
@@ -90,4 +92,13 @@ interface IMogoData {
|
||||
*/
|
||||
fun cancelDownloadCacheData()
|
||||
|
||||
/**
|
||||
* 根据坐标和朝向获取位置所在的道路信息
|
||||
*/
|
||||
fun getRoadInfo(lon: Double, lat: Double, angle: Float): RoadInfo
|
||||
|
||||
/**
|
||||
* 根据瓦片Id和道路Id获取车道数据
|
||||
*/
|
||||
fun getLaneInfo(tileId: Long, roadId: Int): List<Lane>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.mogo.map.entities
|
||||
|
||||
data class Lane(val id: Int, val width: Float, val points: List<Pair<Double, Double>>)
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.mogo.map.entities
|
||||
|
||||
data class RoadInfo(val code: Int, val tileId: Long, val roadId: Int, val roadName: String)
|
||||
Reference in New Issue
Block a user