同步接口修改与停止线的距离

This commit is contained in:
jiaguofeng
2023-09-13 14:41:36 +08:00
parent e368a0fda4
commit 1f1a28a975

View File

@@ -555,6 +555,9 @@ class RoadHelper private constructor() {
points.add(lonLatPoint)
}
stopLine.points = points
stopLine.points?.let {
stopLine.distance = MapDataApi.getNearstFromPointToSegment(dLon, dLat, it[0].longitude, it[0].latitude, it[it.size-1].longitude, it[it.size-1].latitude) * 1e5
}
// Print the stop line object to the log if debugging is enabled.
if (CompileConfig.DEBUG) {
Log.d(TAG, "roadop--getStopLine--stopLine: $stopLine")