From 4b9f22fd67bdba6f37acac8363f8d266bb32b62c Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Tue, 11 Oct 2022 09:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/temp/shenjian/poi/SeaweedAroundPoi.groovy | 8 ++++---- .../fangjia/script/temp/shenjian/util/GaoDeUtils.groovy | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedAroundPoi.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedAroundPoi.groovy index ca74c0184..2bc9b09b2 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedAroundPoi.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedAroundPoi.groovy @@ -73,11 +73,11 @@ class SeaweedAroundPoi extends BaseBatch { // void run() { def city = obj.city if (obj.lng) { - //def lng = SeaweedUtils.formatLatLng(obj.lng) - //def lat = SeaweedUtils.formatLatLng(obj.lat) + def lng = SeaweedUtils.formatLatLng(obj.lng) + def lat = SeaweedUtils.formatLatLng(obj.lat) // {'lon': 121.810877, 'lat': 31.737642} - def lng = 121.810877 - def lat = 31.737642 +// def lng = 121.810877 +// def lat = 31.737642 List pois = GaoDeUtils.searchNearDtoByPoi(city, types, lng, lat, 1000, "") if (CollectionUtils.isNotEmpty(pois)) { String jsonStr = JSONObject.toJSONString(pois) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy index 50ac505aa..17b02bb6b 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy @@ -146,13 +146,13 @@ class GaoDeUtils { while (result.size() < count) { params.page = "${page}".toString() page++ - //params.key = this.getGaodeKey("v3/place/around") - params.key = "25b2d459fd133e22f8abcebeac972692" + params.key = this.getGaodeKey("v3/place/around") + //params.key = "25b2d459fd133e22f8abcebeac972692" params.offset = "100" JSONObject json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v3/place/around", params); if (json == null) { - //params.key = this.getGaodeKey("v3/place/around") - params.key = "25b2d459fd133e22f8abcebeac972692" + params.key = this.getGaodeKey("v3/place/around") + //params.key = "25b2d459fd133e22f8abcebeac972692" params.offset = "100" json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v3/place/around", params); }