[Routing]
1、对接后台的pointType //20240523, 判断此点是中间站点还是途径点 ------- true:站点, false:简单的途径点
This commit is contained in:
@@ -61,6 +61,9 @@ fun AutopilotControlParameters.toRouteInfo(): MessagePad.RouteInfo {
|
||||
routeInfo.startLocation = startLoc.build()
|
||||
routeInfo.endLocation = endLoc.build()
|
||||
|
||||
//20240523 用于表示判断是否是站点下单。默认false:起点下单,接管下单; true: 中间站点下单
|
||||
//routeInfo.isStation = false
|
||||
|
||||
val line = MessagePad.Line.newBuilder()
|
||||
this.autoPilotLine?.let {
|
||||
line.lineId = it.lineId
|
||||
@@ -204,6 +207,7 @@ class AutopilotControlParameters {
|
||||
class AutoPilotLonLat {
|
||||
var lat = 0.0
|
||||
var lon = 0.0
|
||||
var isStation = false //20240523, 判断此点是中间站点还是途径点 ------- true:站点, false:简单的途径点
|
||||
|
||||
constructor() {}
|
||||
constructor(lat: Double, lon: Double) {
|
||||
@@ -211,10 +215,17 @@ class AutopilotControlParameters {
|
||||
this.lon = lon
|
||||
}
|
||||
|
||||
constructor(lat: Double, lon: Double,isStation:Boolean) {
|
||||
this.lat = lat
|
||||
this.lon = lon
|
||||
this.isStation = isStation
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "AutoPilotLonLat{" +
|
||||
"lat=" + lat +
|
||||
", lon=" + lon +
|
||||
", isStation=" + isStation +
|
||||
'}'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user