| | |
| | | |
| | | Integer distance = dto.getDistance().intValue(); |
| | | Integer duration = dto.getDuration().intValue(); |
| | | Integer speed = dto.getDuration().intValue(); |
| | | // 计算实时点位到线段的最优截取 |
| | | Map<String, List<LonLatDto>> remainingNavigation = MapMatchingUtil.getRemainingNavigation(routeVo.getPolyline(), dto.getLongitude(), dto.getLatitude()); |
| | | log.info("remainingNavigation {}", JSON.toJSONString(remainingNavigation)); |
| | |
| | | |
| | | // 封装路由详情 |
| | | Map<String, Object> route = new HashMap<>(); |
| | | route.put("speed",speed); |
| | | route.put("distance",distance); |
| | | route.put("duration",duration); |
| | | route.put("polyline",JSONObject.toJSONString(lonLatDtos)); |