[Routing]

1、对接后台的pointType //20240523, 判断此点是中间站点还是途径点 ------- true:站点, false:简单的途径点
This commit is contained in:
donghongyu
2024-08-27 11:10:19 +08:00
parent 581a7c4d78
commit 7aa5f9f6e1
3 changed files with 50 additions and 4 deletions

View File

@@ -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 +
'}'
}
}