1.URL
http://124.223.60.234:18080/tms/gis/fence/addFence
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"orgId":"F940B79790004404AAC277418FC71C5E",
"typeId":"9F6A9A9100A34EED874BA9D724708A8B",
"name":"仓库7",
"code":"0007",
"formType":1,
"centerLat":"15.643266",
"centerLon":"-91.985221",
"radius":0,
"path":"[{\"lat\":15.643340362596092,\"lon\":-91.985202588745437},{\"lat\":15.643377168304548,\"lon\":-91.985173084446274},{\"lat\":15.643152459665481,\"lon\":-91.9850148341144},{\"lat\":15.643113716771751,\"lon\":-91.985038973995529}]",
"address":"terminal de buses la mesilla, Carretera Panamericana, La Mesilla, La Democracia, Huehuetenango, Guatemala",
"area":"144.77436450129",
"descInfo":"xxxxxxxxxxxxxxxxxxx123"
}
2.3.参数说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| orgId | String | 组织唯一标识 | Y |
| typeId | String | 围栏类型唯一标识 | Y |
| name | String | 围栏名称 | Y |
| code | String | 围栏编码 | Y |
| formType | int | 围栏类型(1:多边形;2:圆形;3:路线) | Y |
| centerLat | double | 中心点纬度 | Y |
| centerLon | double | 中心点经度 | Y |
| radius | int | 圆形围栏半径/路线围栏的宽度,多边形默认0 | Y |
| path | String | 多边形/路线围栏点集合,圆形围栏可为空 | Y |
| address | String | 围栏地址 | Y |
| area | double | 围栏面积 | Y |
| descInfo | String | 围栏描述 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": null
}
3.2.返回结果说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 返回状态 |
| message | String | 返回结果描述 |
| data | object | 返回结果体 |
Author:admin Create time:2025-11-02 21:30
Last editor:admin Update time:2025-11-02 21:42
Last editor:admin Update time:2025-11-02 21:42