1.URL
xxxxxxxxxxxxxxx/system/asset/fence/addTerminalFence
其中xxxxxxxxxxxxxxx为节点URL(详情参考:对接说明中4.服务器节点说明)
(上海节点)http://124.223.60.234:8080/system/asset/fence/addTerminalFence
(美国节点)https://cloud.aovx.com/prod/system/asset/fence/addTerminalFence
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"fence":{
"orgId":"F940B79790004404AAC277418FC71C5E",
"typeId":"9F6A9A9100A34EED874BA9D724708A8B",
"name":"仓库7",
"code":"0007",
"formType":1,
"centerLat":"15.643266",
"centerLon":"-91.985221",
"radius":0,
"path":"[{\"lat\":15.643340362596092,\"lng\":-91.985202588745437},{\"lat\":15.643377168304548,\"lng\":-91.985173084446274},{\"lat\":15.643152459665481,\"lng\":-91.9850148341144},{\"lat\":15.643113716771751,\"lng\":-91.985038973995529}]",
"address":"terminal de buses la mesilla, Carretera Panamericana, La Mesilla, La Democracia, Huehuetenango, Guatemala",
"area":"144.77436450129",
"descInfo":"xxxxxxxxxxxxxxxxxxx123"
},
"config":{
"terminalIds":["584BE29F9E53435FA5148B7732805C90"],
"inAlarm":0,
"outAlarm":0,
"stopAlarm":1,
"stopValue":600,
"speedAlarm":0,
"speedValue":0
}
}
2.3.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
fence | object | 围栏信息 | Y |
config | object | 围栏与设备的绑定关系 | Y |
fence参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
orgId | String | 组织唯一标识 | Y |
typeId | String | 围栏类型唯一标识 | Y |
name | String | 围栏名称 | Y |
code | String | 围栏编码 | Y |
formType | int | 围栏类型(1:多边形;2:圆形) | Y |
centerLat | double | 中心点纬度 | Y |
centerLon | double | 中心点经度 | Y |
radius | int | 圆形围栏半径,多边形默认0 | Y |
path | String | 多边形围栏点集合,圆形围栏可为空 | Y |
address | String | 围栏地址 | Y |
area | double | 围栏面积 | Y |
descInfo | String | 围栏描述 | Y |
config参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
terminalIds | List | 终端唯一标识集合 | Y |
inAlarm | int | 进围栏报警(0:未开启;1:开启) | Y |
outAlarm | int | 出围栏报警(0:未开启;1:开启) | Y |
stopAlarm | int | 超时停车报警(0:未开启;1:开启) | Y |
stopValue | int | 超时停车报警阈值,单位s | Y |
speedAlarm | int | 围栏超速报警(0:未开启;1:开启) | Y |
speedValue | int | 围栏超速报警阈值,单位km/h | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": null
}
3.2.返回结果说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态 |
message | String | 返回结果描述 |
data | object | 返回结果体,围栏的唯一标识 |
作者:admin 创建时间:2025-04-06 21:43
最后编辑:admin 更新时间:2025-04-26 15:52
最后编辑:admin 更新时间:2025-04-26 15:52