Description:

  • List of fences and routes created for origin to destinations

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

Return Example:

Return when correct:

{
    "Result": 200,
    "Message": null,
    "FObject": {
        "Table": [
            {
                "FFenceGUID": "db0bad4e-cc48-4841-9df2-9f7336863807",
                "FFenceName": "88",
                "FPath": "[{\"lat\":23.9271048366717,\"lng\":114.05607095556945},{\"lat\":22.722045882869455,\"lng\":113.38133668694186},{\"lat\":22.696250588153077,\"lng\":113.44635714507058},{\"lat\":22.619667945473353,\"lng\":113.57056862439482}]",
                "FRadius": 0.0,
                "FCenterLon": 113.61256581063105,
                "FCenterLat": 22.991476484485613,
                "FFenceTypeName": null
            },
            {
                "FFenceGUID": "6c7022e9-a613-44b7-9d12-bb43f3786c53",
                "FFenceName": "侧石",
                "FPath": "[{\"lat\":22.773718634735911,\"lng\":113.96213628008041},{\"lat\":22.745890645897884,\"lng\":113.94292645318862},{\"lat\":22.744702746065332,\"lng\":113.9970798775344},{\"lat\":22.747757345457504,\"lng\":114.00970347799708}]",
                "FRadius": 0.0,
                "FCenterLon": 113.97796226156125,
                "FCenterLat": 22.753019561384196,
                "FFenceTypeName": null
            },
            {
                "FFenceGUID": "4377a8a1-210f-4309-a96a-f6184bd3470c",
                "FFenceName": "ANDEY",
                "FPath": "[{\"lat\":22.581380168222417,\"lng\":113.91681428270935},{\"lat\":22.581121549462281,\"lng\":113.91824146082685},{\"lat\":22.579749098358036,\"lng\":113.91753578298305}]",
                "FRadius": 0.0,
                "FCenterLon": 113.91753050930542,
                "FCenterLat": 22.580750273064634,
                "FFenceTypeName": "公司"
            }
        ],
        "Table1": [
            {
                "FRouteGUID": "fa98eec9-7364-4304-9459-085c4f59956f",
                "FNameCode": "5555",
                "FRouteCode": "20201117094004",
                "FStartFenceName": "留仙",
                "FEndFenceName": "留仙公园",
                "FRoadPoints": "[{\"lat\":22.577597388105065,\"lng\":113.92186605243623},{\"lat\":22.577747682418476,\"lng\":113.92199557518418},{\"lat\":22.577987637502936,\"lng\":113.92209510953124},{\"lat\":22.57931667795493,\"lng\":113.92263461907531},{\"lat\":22.57961577269332,\"lng\":113.92275507470549},{\"lat\":22.579925844242666,\"lng\":113.9228745300557},{\"lat\":22.581275560576206,\"lng\":113.92341417206319},{\"lat\":22.5820347930808,\"lng\":113.92379469714002},{\"lat\":22.5824543966742,\"lng\":113.9238742306602},{\"lat\":22.58258419347696,\"lng\":113.92385420140181},{\"lat\":22.58271446464571,\"lng\":113.92377432505363},{\"lat\":22.583035442552283,\"lng\":113.92344398025185},{\"lat\":22.58333571811096,\"lng\":113.92315455675104},{\"lat\":22.58413605181788,\"lng\":113.9223751781957},{\"lat\":22.58413605181788,\"lng\":113.9223751781957},{\"lat\":22.5842458304414,\"lng\":113.92235517302463},{\"lat\":22.584356499715348,\"lng\":113.92242492609277},{\"lat\":22.58441576319153,\"lng\":113.92255454681109},{\"lat\":22.584505312292126,\"lng\":113.92292451603558},{\"lat\":22.584505312292126,\"lng\":113.92292451603558},{\"lat\":22.5844956924286,\"lng\":113.92296441582408},{\"lat\":22.584424787040216,\"lng\":113.92329458850983},{\"lat\":22.584395340613344,\"lng\":113.92346416446333},{\"lat\":22.584385152460165,\"lng\":113.92355393836435},{\"lat\":22.58435473158716,\"lng\":113.92384421190947},{\"lat\":22.584344515335335,\"lng\":113.92393398951008},{\"lat\":22.555226568441086,\"lng\":113.94239785409903},{\"lat\":22.58458324117094,\"lng\":113.92487353293754}]",
                "FDuration": null
            },
            {
                "FRouteGUID": "972a2554-7059-49fd-a880-18f8a7a5c3d7",
                "FNameCode": "14",
                "FRouteCode": "20201104203548",
                "FStartFenceName": "留仙",
                "FEndFenceName": "庭威产业园",
                "FRoadPoints": "[{\"lat\":22.577597388105065,\"lng\":113.92186605243623},{\"lat\":22.577747682418476,\"lng\":113.92199557518418},{\"lat\":22.577987637502936,\"lng\":113.92209510953124},{\"lat\":22.57931667795493,\"lng\":113.92263461907531},{\"lat\":22.57961577269332,\"lng\":113.92275507470549},{\"lat\":22.579925844242666,\"lng\":113.9228745300557},{\"lat\":22.581275560576206,\"lng\":113.92341417206319},{\"lat\":22.5820347930808,\"lng\":113.92379469714002},{\"lat\":22.5824543966742,\"lng\":113.9238742306602},{\"lat\":22.5808631026382,\"lng\":113.91629715808021},{\"lat\":22.58079310052482,\"lng\":113.91636698494823},{\"lat\":22.58079310052482,\"lng\":113.91636698494823},{\"lat\":22.58072223544781,\"lng\":113.91644678136936},{\"lat\":22.580662238982786,\"lng\":113.9165175991719},{\"lat\":22.580452783984118,\"lng\":113.91669717946144},{\"lat\":22.580452783984118,\"lng\":113.91669717946144}]",
                "FDuration": null
            },
            {
                "FRouteGUID": "3583ebed-e8eb-45ca-b742-271514fd1101",
                "FNameCode": "美生",
                "FRouteCode": "20201030115147",
                "FStartFenceName": null,
                "FEndFenceName": "庭威产业园",
                "FRoadPoints": "[{\"lat\":22.58029949452471,\"lng\":113.92305892406162},{\"lat\":22.580051203179707,\"lng\":113.9229153311602},{\"lat\":22.579615416771812,\"lng\":113.92271817301989},{\"lat\":22.579063342211096,\"lng\":113.92259392008019},{\"lat\":22.57837792658728,\"lng\":113.92243288463068},{\"lat\":22.57782429391128,\"lng\":113.92205734443738},{\"lat\":22.577535352462338,\"lng\":113.92157390866244},{\"lat\":22.578079838843916,\"lng\":113.92098212231667},{\"lat\":22.578970876812438,\"lng\":113.92012088950244},{\"lat\":22.579728313208783,\"lng\":113.91933263283501},{\"lat\":22.580272763933827,\"lng\":113.91881279065957},{\"lat\":22.581028796536522,\"lng\":113.91796982408064},{\"lat\":22.580667413684438,\"lng\":113.91711073237423},{\"lat\":22.580638519162854,\"lng\":113.917168032464}]",
                "FDuration": null
            },
            {
                "FRouteGUID": "fead6478-c95e-4323-93f5-2c43b416a030",
                "FNameCode": "TingWei-TCL",
                "FRouteCode": "20210810135916",
                "FStartFenceName": "庭威产业园",
                "FEndFenceName": "中兴",
                "FRoadPoints": "[{\"lat\":22.580572246307955,\"lng\":113.91709684214686},{\"lat\":22.580301967501203,\"lng\":113.91736719048782},{\"lat\":22.57990199755677,\"lng\":113.91773733278696},{\"lat\":22.57990199755677,\"lng\":113.91773733278696},{\"lat\":22.580130752274894,\"lng\":113.91802727637558},{\"lat\":22.580130752274894,\"lng\":113.91802727637558},{\"lat\":22.57986081749037,\"lng\":113.9183365280803},{\"lat\":22.58008021039809,\"lng\":113.9186065503572},{\"lat\":22.58006071969548,\"lng\":113.9186464439405},{\"lat\":22.58009021611469,\"lng\":113.91868630240437},{\"lat\":22.580170463526727,\"lng\":113.91878694157711},{\"lat\":22.580170463526727,\"lng\":113.91878694157711},{\"lat\":22.580120100281032,\"lng\":113.918836827794},{\"lat\":22.579920630387193,\"lng\":113.91903637417985},{\"lat\":22.579189899131045,\"lng\":113.91978669670272},{\"lat\":22.578398668470435,\"lng\":113.92052616617171},{\"lat\":22.57804879029214,\"lng\":113.92088641802985},{\"lat\":22.57750788907901,\"lng\":113.92143531610735},{\"lat\":22.57600425282899,\"lng\":113.93184871039169},{\"lat\":22.57581368278766,\"lng\":113.93213843953309},{\"lat\":22.575743802590257,\"lng\":113.93222836757191},{\"lat\":22.57557219598385,\"lng\":113.93261795349399},{\"lat\":22.57549235307889,\"lng\":113.93284770057298},{\"lat\":22.57537150219399,\"lng\":113.93337708996975},{\"lat\":22.57537150219399,\"lng\":113.93337708996975},{\"lat\":22.575320278237882,\"lng\":113.93403629596078},{\"lat\":22.575300170296106,\"lng\":113.93418613166104},{\"lat\":22.575370151414308,\"lng\":113.93418606885712},{\"lat\":22.575390259362603,\"lng\":113.93403623320081},{\"lat\":22.575390259362603,\"lng\":113.93403623320081},{\"lat\":22.575420412030784,\"lng\":113.93373658042493},{\"lat\":22.57543147732913,\"lng\":113.9334769050736},{\"lat\":22.575522415251317,\"lng\":113.93302742527312},{\"lat\":22.5756222355506,\"lng\":113.93269779544502},{\"lat\":22.5756222355506,\"lng\":113.93269779544502},{\"lat\":22.57574220957004,\"lng\":113.93270767497025},{\"lat\":22.575802199603487,\"lng\":113.93271760785306},{\"lat\":22.57644203608635,\"lng\":113.93272803446318},{\"lat\":22.5769019151806,\"lng\":113.93272764206135}]",
                "FDuration": null
            },
            {
                "FRouteGUID": "9497f6f9-c1a6-4838-aeaa-2d7710a96c84",
                "FNameCode": "test2",
                "FRouteCode": "20201104095338",
                "FStartFenceName": "庭威产业园",
                "FEndFenceName": null,
                "FRoadPoints": "[{\"lat\":22.580572246307955,\"lng\":113.91709684214686},{\"lat\":22.580301967501203,\"lng\":113.91736719048782},{\"lat\":22.57990199755677,\"lng\":113.91773733278696},{\"lat\":22.57990199755677,\"lng\":113.91773733278696},{\"lat\":22.580130752274894,\"lng\":113.91802727637558},{\"lat\":22.580130752274894,\"lng\":113.91802727637558},{\"lat\":22.57986081749037,\"lng\":113.9183365280803},{\"lat\":22.58008021039809,\"lng\":113.9186065503572},{\"lat\":22.58006071969548,\"lng\":113.9186464439405},{\"lat\":22.577357629788786,\"lng\":113.92159599420957},{\"lat\":22.57740814125793,\"lng\":113.92164581460057},{\"lat\":22.57740814125793,\"lng\":113.92164581460057},{\"lat\":22.577597388105065,\"lng\":113.92186605243623},{\"lat\":22.577747682418476,\"lng\":113.92199557518418},{\"lat\":22.577987637502936,\"lng\":113.92209510953124},{\"lat\":22.57931667795493,\"lng\":113.92263461907531},{\"lat\":22.57961577269332,\"lng\":113.92275507470549},{\"lat\":22.579925844242666,\"lng\":113.9228745300557}]",
                "FDuration": null
            },
            {
                "FRouteGUID": "927c07f1-a5e4-4dbe-b22c-c6e76d253b7b",
                "FNameCode": "庭威",
                "FRouteCode": "20201030115059",
                "FStartFenceName": "庭威产业园",
                "FEndFenceName": "留仙",
                "FRoadPoints": "[{\"lat\":22.580572246307955,\"lng\":113.91709684214686},{\"lat\":22.580301967501203,\"lng\":113.91736719048782},{\"lat\":22.57990199755677,\"lng\":113.91773733278696},{\"lat\":22.57990199755677,\"lng\":113.91773733278696},{\"lat\":22.580130752274894,\"lng\":113.91802727637558},{\"lat\":22.580130752274894,\"lng\":113.91802727637558},{\"lat\":22.57986081749037,\"lng\":113.9183365280803},{\"lat\":22.58008021039809,\"lng\":113.9186065503572},{\"lat\":22.58006071969548,\"lng\":113.9186464439405},{\"lat\":22.58009021611469,\"lng\":113.91868630240437},{\"lat\":22.580170463526727,\"lng\":113.91878694157711},{\"lat\":22.580170463526727,\"lng\":113.91878694157711},{\"lat\":22.580120100281032,\"lng\":113.918836827794},{\"lat\":22.579920630387193,\"lng\":113.91903637417985},{\"lat\":22.579189899131045,\"lng\":113.91978669670272},{\"lat\":22.578398668470435,\"lng\":113.92052616617171},{\"lat\":22.57804879029214,\"lng\":113.92088641802985},{\"lat\":22.57750788907901,\"lng\":113.92143531610735},{\"lat\":22.57750788907901,\"lng\":113.92143531610735},{\"lat\":22.577437660140813,\"lng\":113.92150617701628},{\"lat\":22.577357629788786,\"lng\":113.92159599420957},{\"lat\":22.57740814125793,\"lng\":113.92164581460057},{\"lat\":22.57740814125793,\"lng\":113.92164581460057},{\"lat\":22.57751746793316,\"lng\":113.92177536719159},{\"lat\":22.57751746793316,\"lng\":113.92177536719159}]",
                "FDuration": null
            }
        ]
    }
}

Return on error:


Return Parameter Description:

Table(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

Table1(Route List)

Parameter Name Type Instructions
FRouteGUID String Route GUID
FRouteName String Rote 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
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";
//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;
文档更新时间: 2023-02-06 16:05   作者:刘家帅