| | |
| | | // 当前的走航数据的定位和污染源距离是否是逐渐接近,若走航远离了主要污染源,提示用户调整走航路线 |
| | | if (!result.sortedSceneList.isNullOrEmpty()) { |
| | | val sT = clueList.first().pollutedData?.startTime |
| | | val eT = clueList.last().pollutedData?.endTime |
| | | val closetScene = result.sortedSceneList?.first() |
| | | // 走航路线调整建议 |
| | | result.advice = |
| | | "根据${sT}起的${clueList.size}条最新污染线索,污染源【${closetScene?.first?.name}】被多次溯源,具有较高污染风险,现提供新的走航推荐路线,可经过该污染源。" |
| | | "根据${sT}至${eT}的${clueList.size}条最新污染线索,污染源【${closetScene?.first?.name}】被多次溯源,具有较高污染风险,现提供新的走航推荐路线,可经过该污染源。" |
| | | |
| | | val lastP = realTimeDataList.last() |
| | | // 建议对应的数据采样时间 |
| | |
| | | // 建议的走航路线 |
| | | result.direction = AMapService.directionDriving(origin, destination) |
| | | } |
| | | // 线索分析完成后,移动至历史线索列表 |
| | | historyClueList.addAll(clueList) |
| | | clueList.clear() |
| | | realTimeDataList.clear() |
| | | |
| | | callback(result) |
| | | } |
| | | |
| | | // 线索分析完成后,移动至历史线索列表 |
| | | historyClueList.addAll(clueList) |
| | | clueList.clear() |
| | | realTimeDataList.clear() |
| | | |
| | | callback(result) |
| | | // TODO() |
| | | } |
| | | |