QPE API主要接口简介

获取项目信息

getProjectInfo

http://192.168.100.6:8080/qpe/getProjectInfo?version=2注意指定参数version
获取地图背景图片backgroundImage,边界polygon,区域zone以及locator等信息。

{
   "coordinateSystems":[
      {
         "locators":[
            {
               "locationLocked":false,
               "orientation":[
                  1.5708,
                  0,
                  0
               ],
               "visible":true,
               "notes":"",
               "color":"#ff0000ff",
               "isOrientationSetManually":false,
               "associatedAreas":[
                  "0d6fa574-dfcb-4625-84ec-823da41e2286"
               ],
               "locationLockedX":false,
               "locatorChannel":"Proprietary2481",
               "locationLockedZ":false,
               "locationLockedY":false,
               "locatorType":"Q17",
               "name":"L004",
               "location":[
                  -0.9,
                  -0.3,
                  3
               ],
               "id":"a4da22efcc9e"
            },
            {
               "locationLocked":false,
               "orientation":[
                  1.5708,
                  0,
                  0
               ],
               "visible":true,
               "notes":"",
               "color":"#ff0000ff",
               "isOrientationSetManually":false,
               "associatedAreas":[
                  "0d6fa574-dfcb-4625-84ec-823da41e2286"
               ],
               "locationLockedX":false,
               "locatorChannel":"Proprietary2481",
               "locationLockedZ":false,
               "locationLockedY":false,
               "locatorType":"Q17",
               "name":"L003",
               "location":[
                  1.25,
                  -0.35,
                  3
               ],
               "id":"a4da22efe186"
            }
         ],
         "backgroundImages":[
            {
               "widthMeter":5.20750035736983,
               "heightMeter":5.791343073747641,
               "xMeter":-2.6462820729589076,
               "visible":true,
               "yMeter":-3.4210283756256104,
               "rotation":0,
               "alpha":1,
               "origoY":503.4215796860839,
               "id":"8ec85a7a-1893-4f37-a680-c7ac70a27e83",
               "origoX":562.0331775014596,
               "metersPerPixelY":0.0047084090030468624,
               "metersPerPixelX":0.0047084090030468624
            }
         ],
         "relativeZ":0,
         "polygons":[
            {
               "locationLocked":true,
               "visible":true,
               "color":"#ff0000ff",
               "zoneGroupId":"Default",
               "trackingAreas":[
                  {
                     "name":"office@LandingSite",
                     "id":"0d6fa574-dfcb-4625-84ec-823da41e2286",
                     "minZ":1,
                     "track3d":false
                  }
               ],
               "name":"Polygon001",
               "polygonData":"-2.50,-2.25|1.40,-2.25|1.40,-3.20|2.30,-3.20|2.30,-2.25|2.50,-2.25|2.50,2.25|-2.50,2.25|-2.50,-2.25",
               "id":"873dea1f-fb20-4a30-9ce1-65591d91984c",
               "polygonHoles":[
                  
               ]
            }
         ],
         "name":"CoordSys001",
         "id":"3e7c4371-42be-4019-b7c0-ec2012d448ad",
         "zones":[
            {
               "locationLocked":false,
               "visible":true,
               "color":"#ffffff00",
               "zoneGroupId":"Default",
               "name":"Case2",
               "polygonData":"-1.70,2.25|-1.70,1.95|-0.90,1.95|-0.90,2.25|-1.70,2.25",
               "id":"42e70221-ee3f-4042-88c8-6f418364bf50",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":false,
               "color":"#ff0000ff",
               "zoneGroupId":"53eae164-7bef-4f9b-9b9d-d473e520c053",
               "name":"Outside",
               "polygonData":"-2.50,-2.25|-2.50,-3.20|2.50,-3.20|2.50,-2.25|-2.50,-2.25",
               "id":"2c07ba58-df43-478e-9173-94fcc7e7291d",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":true,
               "color":"#ffffff00",
               "zoneGroupId":"Default",
               "name":"Desk_3",
               "polygonData":"1.29,1.05|1.30,-0.15|2.50,-0.15|2.50,1.05|1.29,1.05",
               "id":"47edc182-d516-48ed-8d5d-fa4fb0c2d697",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":true,
               "color":"#ffffff00",
               "zoneGroupId":"Default",
               "name":"Desk_1",
               "polygonData":"-2.50,0.60|-2.50,0.00|-0.90,0.00|-0.90,1.10|-1.35,1.10|-1.55,0.70|-2.50,0.60",
               "id":"b9dae3fd-c055-4f29-b882-c23421635699",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":true,
               "visible":false,
               "color":"#ff0000cc",
               "zoneGroupId":"Default",
               "name":"Right_Half",
               "polygonData":"0.00,2.25|0.00,-2.25|2.50,-2.25|2.50,2.25|0.00,2.25",
               "id":"8a33f9c9-c80d-437a-bc76-f46eedd9b19f",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":true,
               "visible":true,
               "color":"#ff00ff00",
               "zoneGroupId":"53eae164-7bef-4f9b-9b9d-d473e520c053",
               "name":"Door",
               "polygonData":"1.40,-2.25|2.30,-2.25|2.30,-1.35|2.07,-1.38|1.85,-1.47|1.66,-1.61|1.52,-1.80|1.43,-2.01|1.40,-2.25",
               "id":"93e9eeec-f4c2-4f30-9f97-39002c54d31b",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":true,
               "color":"#ffffff00",
               "zoneGroupId":"Default",
               "name":"Desk_2",
               "polygonData":"-0.70,2.25|-0.70,1.90|-0.60,1.65|-0.35,1.55|0.35,1.55|0.60,1.65|0.70,1.90|0.70,2.25|-0.70,2.25",
               "id":"288e136e-b1e8-4ea9-a1d9-ed148832b30d",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":false,
               "color":"#80ffff00",
               "zoneGroupId":"Default",
               "name":"Inside",
               "polygonData":"-2.50,2.25|-2.50,-2.25|2.50,-2.25|2.50,2.25|-2.50,2.25",
               "id":"176ca962-8b45-46f2-ba73-52978a6bc1b8",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":true,
               "color":"#ffffff00",
               "zoneGroupId":"Default",
               "name":"Case1",
               "polygonData":"-2.50,2.25|-2.50,1.95|-1.70,1.95|-1.70,2.25|-2.50,2.25",
               "id":"a87ebef4-9b83-461a-9359-b75758a85a86",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":true,
               "visible":false,
               "color":"#ff0000ff",
               "zoneGroupId":"Default",
               "name":"Left_Half",
               "polygonData":"-2.50,2.25|-2.50,-2.25|0.00,-2.25|0.00,2.25|-2.50,2.25",
               "id":"0369d300-c2ce-4cb4-99e0-6a2cdab89351",
               "polygonHoles":[
                  
               ]
            },
            {
               "locationLocked":false,
               "visible":true,
               "color":"#ffffff00",
               "zoneGroupId":"Default",
               "name":"Ground",
               "polygonData":"-2.50,2.25|-2.50,-3.20|2.50,-3.20|2.50,2.25|-2.50,2.25",
               "id":"1dfcc90f-1c90-48ea-82b5-c1dc2b4f307a",
               "polygonHoles":[
                  
               ]
            }
         ]
      }
   ],
   "code":0,
   "responseTS":1646621598646,
   "message":"ProjectData",
   "version":"2.0",
   "command":"http://192.168.100.6:8080/qpe/getProjectInfo?version=2&hummanReadable=true&noImageBytes=true",
   "status":"Ok"
}

获取标签数据

getTagData (QPE 7.0 or higher)

{
   "code":"0",
   "status":"Ok",
   "command":"http://192.168.100.6:8080/qpe/getTagData",
   "message":"Tag data",
   "responseTS":1646620578061,
   "version":"1.0",
   "formatId":"defaultLocationAndInfo",
   "formatName":"defaultLocationAndInfo",
   "tags":[
      {
         "tagId":"fc1144000018",
         "tagName":null,
         "lastPacketTS":1646620573468,
         "color":"#FFFF00",
         "tagGroupName":null,
         "locationType":"position",
         "locationMovementStatus":"stationary",
         "locationRadius":0.09,
         "location":[
            1.05,
            -0.20,
            1.00
         ],
         "locationTS":1646620573468,
         "locationCoordSysId":"3e7c4371-42be-4019-b7c0-ec2012d448ad",
         "locationCoordSysName":"CoordSys001",
         "locationZoneIds":[
            "8a33f9c9-c80d-437a-bc76-f46eedd9b19f",
            "176ca962-8b45-46f2-ba73-52978a6bc1b8",
            "1dfcc90f-1c90-48ea-82b5-c1dc2b4f307a"
         ],
         "locationZoneNames":[
            "Right_Half",
            "Inside",
            "Ground"
         ],
         "button1State":"notPushed",
         "button1StateTS":1646620558421,
         "button1LastPressTS":null,
         "batteryAlarm":"ok",
         "batteryAlarmTS":1646620558421,
         "rssi":48,
         "rssiLocatorCount":2
      },
      {
         "tagId":"2100195103cb",
         "tagName":"eTag_0003",
         "lastPacketTS":null,
         "color":"#00FFCC",
         "tagGroupName":"LS-TC1",
         "locationType":"noData",
         "locationMovementStatus":"noData",
         "locationRadius":null,
         "location":null,
         "locationTS":1646620578060,
         "locationCoordSysId":null,
         "locationCoordSysName":null,
         "locationZoneIds":null,
         "locationZoneNames":null,
         "button1State":null,
         "button1StateTS":1646620578060,
         "button1LastPressTS":null,
         "batteryAlarm":null,
         "batteryAlarmTS":1646620578060,
         "rssi":null,
         "rssiLocatorCount":null
      },
   ]
}
AttributeSampleDescription
tagId2100195103cb标签唯一标识,12位Hex
button1State2100195103cb按钮1状态
batteryAlarm电池告警状态
locationZoneIds位置所在区域标识

getTagPosition (QPE 6.0 or earlier)

getZones

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值