Description:
- List of route 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 |
| routeGuid | Yes | string | route guid |
Return Example:
Return when correct:
{
"Result": 200,
"Message": null,
"FObject": [
{
"FRouteGUID": "9e97803e-00ff-42f5-8e5f-ed9fdf86b60b",
"FRouteName": "P02B-O04052102",
"FRouteCode": "P02B-O04052102",
"FStartFenceName": "P02B",
"FEndFenceName": "O04052102",
"FRoadPoints": "[{\"lat\":14.59595,\"lng\":120.95042},{\"lat\":14.59579,\"lng\":120.9492},{\"lat\":14.59569,\"lng\":120.94846},{\"lat\":14.59549,\"lng\":120.94686},{\"lat\":14.59557,\"lng\":120.94836},{\"lat\":14.59564,\"lng\":120.94891},{\"lat\":14.59591,\"lng\":120.95107},{\"lat\":14.59614,\"lng\":120.95282},{\"lat\":14.59635,\"lng\":120.95447},{\"lat\":14.59648,\"lng\":120.95559}]",
"FDuration": 0,
"FDescription": "P02B-O04052102",
"FSubRoutes":[
{
"FRouteGUID": "9e97803e-00ff-42f5-8e5f-ed9fdf86b603",
"FRouteName": "P02B-O04052103",
"FRouteCode": "P02B-O04052103",
"FStartFenceName": "P02B2",
"FEndFenceName": "O04052103",
"FRoadPoints": "[{\"lat\":14.59595,\"lng\":120.95042},{\"lat\":14.59579,\"lng\":120.9492},{\"lat\":14.59569,\"lng\":120.94846},{\"lat\":14.59549,\"lng\":120.94686},{\"lat\":14.59557,\"lng\":120.94836},{\"lat\":14.59564,\"lng\":120.94891},{\"lat\":14.59591,\"lng\":120.95107},{\"lat\":14.59614,\"lng\":120.95282},{\"lat\":14.59635,\"lng\":120.95447},{\"lat\":14.59648,\"lng\":120.95559}]",
"FDuration": 0,
"FDescription": "P02B-O04052103"
}
]
}
]
}Return on error:
{
"Result": 105,
"Message": "Fail:token error or timeout",
"FObject": null
}
Return Parameter Description:
FObject(Route List)
| Parameter Name | Type | Instructions |
|---|---|---|
| FRouteGUID | String | Route GUID |
| FRouteName | String | Route Name |
| FRouteCode | String | Route Code |
| StartFenceName | String | Start Fence Name |
| EndFenceName | String | End Fence Name |
| FRoadPoints | String | Collection points (jsonstring) |
| FDuration | Int | Transportation time (Sencod) |
| FDescription | String | Description |
| FSubRoutes | Ojbect | Collection of branch routes |
FSubRoutes(Route List)
| Parameter Name | Type | Instructions |
|---|---|---|
| FRouteGUID | String | Route GUID |
| FRouteName | String | Route Name |
| FRouteCode | String | Route Code |
| StartFenceName | String | Start Fence Name |
| EndFenceName | String | End Fence Name |
| FRoadPoints | String | Collection points (jsonstring) |
| FDuration | Int | Transportation time (Sencod) |
| FDescription | String | Description |
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-09-18 15:42 作者:刘家帅