1.URL
xxxxxxxxxxxxxxx/system/asset/location/queryTerminalStatus
其中xxxxxxxxxxxxxxx为节点URL(详情参考:对接说明中4.服务器节点说明)
(上海节点)http://124.223.60.234:8080/system/asset/location/queryTerminalStatus
(美国节点)https://cloud.aovx.com/prod/system/asset/location/queryTerminalStatus
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"terminalId":"xxxxxxxxxxxxxxxxxxxxxx"
}
2.3.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
terminalId | String | 系统终端唯一标识 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": {
"onlineStatus": 0,
"battery": 100,
"shutdown": 0,
"locType": 4,
"lat": 22.78605987342126,
"lon": 114.44974930155675,
"speed": 0.0,
"dir": 0,
"mil": 0.0,
"gtime": "2023-11-18 14:36:08",
"rtime": "2023-11-18 06:36:12",
"gsm": 11,
"gnss": 0,
"alarms": []
}
}
3.2.返回结果说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态 |
message | String | 返回结果描述 |
data | object | 返回结果体 |
data 详情
字段 | 类型 | 说明 |
---|---|---|
onlineStatus | int | 联网状态(1:联网中;0:未联网) |
battery | int | 电量值,百分比 |
shutdown | int | 关机状态(1:关机;0:开机) |
locType | int | 定位类型(0:不定位;1:卫星定位;2:基站定位;3:定位保持;4:WIFI) |
lat | Double | 纬度(WGS-84) |
lon | Double | 经度(WGS-84) |
speed | Double | 速度,单位: km/h |
dir | int | 方向,0~360,0:正北 |
mil | Double | 里程,单位: km |
gtime | String | 数据组包时间 (UTC) |
rtime | String | 数据接收时间(UTC) |
gsm | Integer | GSM信号 |
gnss | Integer | 卫星信号 |
alarms | List | 报警类型ID集合 |
workModel | String | 工作模式:0:周期模式;1: 触发模式;2: 跟踪模式+触发模式;3: 时钟模式+触发模式;4: 周期模式+触发模式;5:智能模式;6:超级省电 |
4.示例
作者:admin 创建时间:2023-11-18 15:35
最后编辑:admin 更新时间:2025-04-26 15:43
最后编辑:admin 更新时间:2025-04-26 15:43