增大分页
This commit is contained in:
+2
-2
@@ -66,7 +66,7 @@ class SeaweedAroundPoi extends BaseBatch {
|
||||
|
||||
static dealPoi(DBObject query, def types) {
|
||||
query.put("status", 1)
|
||||
conn136.find(query).batchSize(5000).each {objTemp ->
|
||||
conn136.find(query).batchSize(5000).limit(20000).each {objTemp ->
|
||||
final def obj = objTemp
|
||||
// executorService.submit(new Runnable() {
|
||||
// @Override
|
||||
@@ -177,7 +177,7 @@ class SeaweedAroundPoi extends BaseBatch {
|
||||
// put("银行", "1601|1603");
|
||||
put("大型超市", "0604");
|
||||
put("商场", "0601");
|
||||
put("餐饮", "0501|0502|0503|0504");
|
||||
//put("餐饮", "0501|0502|0503|0504");
|
||||
// put("旅游景点", "110000");
|
||||
put("公园广场", "110100|110101|110102|110103|110104|110105")
|
||||
// put("图书馆", "140500");
|
||||
|
||||
+2
@@ -147,9 +147,11 @@ class GaoDeUtils {
|
||||
params.page = "${page}".toString()
|
||||
page++
|
||||
params.key = this.getGaodeKey("v3/place/around")
|
||||
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.offset = "100"
|
||||
json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v3/place/around", params);
|
||||
}
|
||||
if (json && json.info && json.info == "OK") {
|
||||
|
||||
Reference in New Issue
Block a user