Commit fad4219a authored by hanbing's avatar hanbing

[update] 诊断优化,返回相邻路口空间对象

parent b456c6d8
......@@ -138,6 +138,9 @@ public class DiagnoServiceImpl implements DiagnoService {
startLocation.add(startLonLat[1]);
crossIdAndLocationVO.setLocation(startLocation);
}
// 关联路口wkt
String wkt = ridInfo.getWkt();
crossIdAndLocationVO.setWkt(wkt);
CrossDataRealtimePO crossDataRealtimePO = crossDataRealtimeMapper.selectByCrossId(startCrossId);
if (crossDataRealtimePO == null) {
throw new RuntimeException("没有该路口实时数据");
......
......@@ -23,4 +23,6 @@ public class CrossIdAndLocationVO {
List<Double> location;
@ApiModelProperty(value = "路口状态:0正常;1失衡;2拥堵;3溢出")
Integer realtimeStatus;
@ApiModelProperty(name = "空间对象", notes = "空间对象")
private String wkt;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment