同步接口修改与停止线的距离
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user