Description:
- List of fence detail information
Version:
Ver. | Maker | Established Date | Revision Date |
---|---|---|---|
1.0.0 | lenny | 2021-12-31 |
Request URL:
Request Method:
- POST
Request Header:
Parameter Name | Whether Must | Type | Instructions |
---|---|---|---|
Content-Type | Yes | string | Request Type: x-www-form-urlencoded |
Request Parameter:
Parameter Name | Whether Must | Type | Instructions |
---|---|---|---|
fTokenID | Yes | string | Token |
fenceGuid | Yes | string | fence guid |
Return Example:
Return when correct:
{
"Result": 200,
"Message": null,
"FObject": [
{
"FFenceGUID": "2a95877f-2e08-4ab8-b347-00341bf6ff7f",
"FFenceName": "D08252002",
"FPath": "[{\"lat\":14.23630678,\"lng\":121.13384147},{\"lat\":14.23603127,\"lng\":121.13302357},{\"lat\":14.2355568,\"lng\":121.13317377},{\"lat\":14.23587918,\"lng\":121.13405938}]",
"FRadius": 0.0,
"FCenterLon": 121.133523,
"FCenterLat": 14.235939,
"FFenceTypeName": "CONDEMNED",
"FDescription": "DON AL ENTERPRISES"
}
]
}
Return on error:
{
"Result": 105,
"Message": "Fail:token error or timeout",
"FObject": null
}
Return Parameter Description:
FObject(Fence List)
Parameter Name | Type | Instructions |
---|---|---|
FFenceGUID | String | Fence GUID |
FFenceName | String | Fence Name |
FPath | String | Collection points (jsonstring) |
FRadius | Int | Radius |
FCenterLon | String | Center Longitude |
FCenterLat | String | Center Latitude |
FFenceTypeName | String | Fence Type Name |
FDescription | String | Description |
Address | String | Address |
Request Example:
String result = "";
//request url
String url ="http://icloud.assetscontrols.com:8092/api/AscentPH/GetRouteList&fTokenID=DB7F20D9-84C3-44C3-B05A-06A9C392A189&fenceGuid=2a95877f-2e08-4ab8-b347-00341bf6ff7f";
//Create post request object
HttpPost post = new HttpPost(url);
CloseableHttpClient client = HttpClients.createDefault();
//Start the execution request and get the return value
HttpResponse response = client.execute(post);
//Get the returned entity object
HttpEntity entity = response.getEntity();
//Convert entity object to string
String result = EntityUtils.toString(entity, "UTF-8");
return result;
文档更新时间: 2025-06-25 17:16 作者:刘家帅