| | |
| | | double v = FastDistanceCalculator.distanceFast(dto.getLatitude(), dto.getLongitude(), xpPoint.getPointLat(), xpPoint.getPointLon()); |
| | | |
| | | // m做判断 |
| | | if ((v*1000) < orderDistance) { |
| | | if ((v) < orderDistance) { |
| | | NearestNextVo nearestNextVo = new NearestNextVo(); |
| | | nearestNextVo.setId(xpPoint.getId()); |
| | | nearestNextVo.setName(xpPoint.getPointName()); |
| | |
| | | ArrayList<XpHistoryStartPointsVo> resultList = new ArrayList<>(10); |
| | | for (XpPoint xpPoint : xpPoints) { |
| | | XpHistoryStartPointsVo xpHistoryStartPointsVo = new XpHistoryStartPointsVo(); |
| | | xpHistoryStartPointsVo.setOperationStatus(xpPoint.getOperationStatus()); |
| | | xpHistoryStartPointsVo.setName(xpPoint.getPointName()); |
| | | xpHistoryStartPointsVo.setAddress(xpPoint.getPointAddress()); |
| | | xpHistoryStartPointsVo.setLatitude(xpPoint.getPointLat()); |
| | |
| | | ArrayList<XpHistoryEndPointsVo> resultList = new ArrayList<>(10); |
| | | for (XpPoint xpPoint : xpPoints) { |
| | | XpHistoryEndPointsVo xpHistoryEndPointsVo = new XpHistoryEndPointsVo(); |
| | | xpHistoryEndPointsVo.setOperationStatus(xpPoint.getOperationStatus()); |
| | | xpHistoryEndPointsVo.setName(xpPoint.getPointName()); |
| | | xpHistoryEndPointsVo.setAddress(xpPoint.getPointAddress()); |
| | | xpHistoryEndPointsVo.setLatitude(xpPoint.getPointLat()); |