[V2X][Road]施工占道事件触发后,标记道路颜色

This commit is contained in:
renwj
2022-09-23 19:57:58 +08:00
parent 7943e2b57d
commit 850fa814bc
8 changed files with 382 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
package com.mogo.map;
import com.mogo.map.center.CenterLine;
import com.mogo.map.marker.IMogoMarker;
import com.mogo.map.marker.MogoMarkerOptions;
import com.mogo.map.overlay.IMogoPolyline;
@@ -170,8 +171,18 @@ public interface IMogoMap {
IMogoPolyline addPolyline( MogoPolylineOptions options );
/**
* 获取地图版本
* 获取地图版本
* @return
*/
String getMapVersion();
/**
* 获取行驶方向一定长度的中心线
* @param lon 经度
* @param lat 纬度
* @param angle 航向角
* @param distance 获取车道中心线的长度,> 0: 行驶方向前方距离, <0 行驶方向后方距离
* @return 中心线相关数据
*/
CenterLine getCenterLineRangeInfo(double lon, double lat, float angle, float distance);
}

View File

@@ -0,0 +1,13 @@
package com.mogo.map.center
import android.util.Pair
data class CenterLine(
var id: String = "", //id
var tile_id: String = "", //瓦片id
var road_id: String = "", //道路id
var lane_id: String = "", //车道id
var points: List<Pair<Double, Double>> = emptyList(),
var angle: Double = 0.0
)