| | |
| | | //服务最远距离 km |
| | | Integer serviceRange = convenientMerchantDO.getServiceRange(); |
| | | |
| | | Map<Object, Object> around = MapDistance.getAround(convenientMerchantDO.getLat(), convenientMerchantDO.getLon(), serviceRange * 1000 + ""); |
| | | Map<Object, Object> around = MapDistance.getAround(convenientMerchantDO.getLat(), convenientMerchantDO.getLon(), serviceRange * 1000d); |
| | | String maxLat = around.get("maxLat").toString(); |
| | | String minLat = around.get("minLat").toString(); |
| | | String minLng = around.get("minLng").toString(); |
| | |
| | | convenientElevatingPointDOS.forEach(f -> { |
| | | ConvenientElevatingPointVO convenientElevatingPointVO = new ConvenientElevatingPointVO(); |
| | | BeanUtils.copyProperties(f, convenientElevatingPointVO); |
| | | Double distance = MapDistance.distanceOfTwoPoints(lng, lat, f.getLon(), f.getLat()); |
| | | Double distance = MapDistance.distanceOfTwoPoints(lat, lng, f.getLon(), f.getLat()); |
| | | convenientElevatingPointVO.setDistance(distance); |
| | | convenientElevatingPointVOS.add(convenientElevatingPointVO); |
| | | }); |