1. 区域
rtls
  • REST API
    • 说明
    • 设置
      • 获取
      • 设置
    • 认证
      • 设置 Auth
      • 获取 Auth
      • 删除 Auth
      • 获取 JWT
      • 刷新 JWT
      • 重置密码
    • 文件
      • 获取文件
      • 设置文件
      • 删除文件
    • RTLS
      • 地图映射
        • 获取
        • 设置
      • 区域
        • 获取
          GET
        • 设置
          PUT
      • 围栏
        • 获取
        • 设置
      • 高度差分站
        • 获取
        • 设置
        • 上报传感数据
        • 获取传感数据
        • 获取传感数据数量
      • RSSI 锚点
        • 获取
        • 设置
        • 上报传感数据
      • 位置
        • 上报位置
        • 获取最新位置
        • 历史轨迹
        • 历史轨迹计数
      • 标签
        • 获取
    • 报警
      • 获取报警规则
      • 设置报警规则
      • 新增告警记录
      • 告警记录分页
      • 告警记录分页计数
      • 告警记录统计
      • 新增告警处理
      • 告警处理列表
      • 告警记录统计 - 未处理
      • 围栏切换记录分页
      • 区域切换记录分页
    • 数据
      • 数据库状态
      • 文件存储状态
  • 数据模型
    • UpdateResult
    • DeleteResult
    • Auth
    • AuthWithPua
    • HeightDatum
    • HeightDatumValue
    • RssiAnchor
    • RssiAnchorValue
    • Map
    • Area
    • Fence
    • Setting
    • AlarmRule
    • AlarmData
    • Individual
    • Collective
    • Sos
    • Battery
    • FenceInside
    • FenceOutside
    • FenceEnter
    • FenceExit
    • FenceStay
    • FenceLeave
    • FenceInside (count)
    • FenceOutside (count)
    • FenceCongestion
    • AreaCongestion
    • Custom
    • AlarmRecord
    • RecordBody
  1. 区域

设置

PUT
/rtls/areas

请求参数

Body 参数application/json必填

示例
{
    "1": {
        "uid": 1,
        "data": [
            [
                {
                    "latitude": 22.61129753365204,
                    "longitude": 113.85926445582903,
                    "height": -0.0005088597652437585
                },
                {
                    "latitude": 22.611152880990897,
                    "longitude": 113.85910821707148,
                    "height": -0.016849560897677144
                },
                {
                    "latitude": 22.611035848671627,
                    "longitude": 113.85924803636348,
                    "height": -0.013013033690004068
                }
            ],
            [
                {
                    "latitude": 22.61129753365204,
                    "longitude": 113.85926445582903,
                    "height": -0.0005088597652437585
                },
                {
                    "latitude": 22.611035848671627,
                    "longitude": 113.85924803636348,
                    "height": -0.013013033690004068
                },
                {
                    "latitude": 22.61118650722416,
                    "longitude": 113.85934709017846,
                    "height": -0.013845719591736864
                }
            ]
        ],
        "free_height": false,
        "name": "A1",
        "points": [
            [
                -2382763.465833909,
                5387388.595320618,
                2437024.272566325
            ],
            [
                -2382775.671517348,
                5387376.479119422,
                2437039.0662099384
            ],
            [
                -2382785.3485123524,
                5387377.354448048,
                2437027.7112207063
            ],
            [
                -2382778.6296333033,
                5387387.340832597,
                2437012.31020497
            ]
        ]
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/rtls/areas' \
--header 'Content-Type: application/json' \
--data '{
    "1": {
        "uid": 1,
        "data": [
            [
                {
                    "latitude": 22.61129753365204,
                    "longitude": 113.85926445582903,
                    "height": -0.0005088597652437585
                },
                {
                    "latitude": 22.611152880990897,
                    "longitude": 113.85910821707148,
                    "height": -0.016849560897677144
                },
                {
                    "latitude": 22.611035848671627,
                    "longitude": 113.85924803636348,
                    "height": -0.013013033690004068
                }
            ],
            [
                {
                    "latitude": 22.61129753365204,
                    "longitude": 113.85926445582903,
                    "height": -0.0005088597652437585
                },
                {
                    "latitude": 22.611035848671627,
                    "longitude": 113.85924803636348,
                    "height": -0.013013033690004068
                },
                {
                    "latitude": 22.61118650722416,
                    "longitude": 113.85934709017846,
                    "height": -0.013845719591736864
                }
            ]
        ],
        "free_height": false,
        "name": "A1",
        "points": [
            [
                -2382763.465833909,
                5387388.595320618,
                2437024.272566325
            ],
            [
                -2382775.671517348,
                5387376.479119422,
                2437039.0662099384
            ],
            [
                -2382785.3485123524,
                5387377.354448048,
                2437027.7112207063
            ],
            [
                -2382778.6296333033,
                5387387.340832597,
                2437012.31020497
            ]
        ]
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "deleted": 0,
    "updated": 1,
    "created": 0
}
修改于 2026-07-19 13:21:34
上一页
获取
下一页
获取
Built with