| | |
| | | @RequestMapping(path = "/api/poi/") |
| | | @Api(tags = {"POI相关接口"}) |
| | | @Slf4j |
| | | @SuppressWarnings("ALL") |
| | | public class OrgPoiController { |
| | | |
| | | //北京数据平台poi接口转发 |
| | |
| | | String formatted_address = object.getString("formatted_address"); |
| | | if (!StringUtils.isEmpty(formatted_address)) { |
| | | String encoding = getEncoding(formatted_address); |
| | | log.info("encoding: {}", encoding); |
| | | //log.info("encoding: {}", encoding); |
| | | if (!"UTF-8".equals(encoding) && !"".equals(encoding)) { |
| | | formatted_address = new String(formatted_address.getBytes(encoding), "UTF-8"); |
| | | } |
| | |
| | | data.setX(0.0); |
| | | data.setY(0.0); |
| | | j++; |
| | | if (j == 3000) { |
| | | if (j == 300000) { |
| | | excelWriter.finish(); |
| | | return Result.error("返回值为0超过3000次"); |
| | | return Result.error("返回值为0超过300000次"); |
| | | } |
| | | } |
| | | k++; |