| | |
| | | diu = "B78F99DD-2496-4A43-843B-172CDA2D9798"; |
| | | } |
| | | locations = locations + "," + (new Date().getTime() / 1000); |
| | | String url = "https://restapi.amap.com/v4/geofence/status?key=" + key + "&diu=" + diu + "&locations=" + locations; |
| | | String url = "https://api.map.baidu.com/directionlite/v1/geofence/status?key=" + key + "&diu=" + diu + "&locations=" + locations; |
| | | String forObject = restTemplate.getForObject(url, String.class); |
| | | JSONObject jsonObject = JSON.parseObject(forObject); |
| | | List<String> ids = new ArrayList<>(); |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | | System.err.println(data); |
| | | int status = data.getIntValue("status"); |
| | | if(0 == status){ |
| | | JSONArray fencingEventList = data.getJSONArray("fencing_event_list"); |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |