| | |
| | | // 获取设备位置 生成缓冲区 |
| | | if (gdManageDeviceEntity.getLongitude() != null && gdManageDeviceEntity.getLatitude() != null) { |
| | | String bufferAroundPointAsString = GeomUtils.getBufferAroundPointAsString(gdManageDeviceEntity.getLongitude(), gdManageDeviceEntity.getLatitude(), 5 * 1000); |
| | | log.info("saveOrUpdateDevice {}", bufferAroundPointAsString); |
| | | gdManageDeviceEntity.setGeom(bufferAroundPointAsString); |
| | | String location = GdGeoAddressUtil.getFormattedAddress(gdManageDeviceEntity.getLongitude(), gdManageDeviceEntity.getLatitude()); |
| | | gdManageDeviceEntity.setLocation(location); |