高德搜索key单独用
This commit is contained in:
+2
-1
@@ -155,7 +155,8 @@ public class AddressMatchProxyServiceImpl extends AbstractHttpApiService impleme
|
||||
params.put("city", city);
|
||||
params.put("output", "json");
|
||||
params.put("keywords", address);
|
||||
params.put("key", "4ccfe3c898a9489884bd2bcb1ef6dcde");
|
||||
// 此key单独用
|
||||
params.put("key", "35925efd7333f1df52145e51b8e4e56a");
|
||||
try {
|
||||
JSONObject result = request.getJsonContent("http://restapi.amap.com/v3/place/text", params, "UTF-8");
|
||||
if (result != null && result.getInt("status") != 1) {
|
||||
|
||||
Reference in New Issue
Block a user