1.URL
http://124.223.60.234:8080/system/auxiliary/getWifiLocation
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"wifiAccessPoints":[
{
"macAddress":"f4:92:bf:5a:96:3f",
"signalStrength":-67
},
{
"macAddress":"00:c1:64:f2:32:45",
"signalStrength":-67
}
]
}
2.3.参数说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| wifiAccessPoints | List | WIFI信息结合(WIFI定位至少要包含两个MAC地址jihe) | Y |
wifiAccessPoints说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| macAddress | String | MAC 地址 | Y |
| signalStrength | Int | RSSI信号值 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": {
"location": {
"lat": 40.757532,
"lng": -73.9973381
},
"accuracy": 22.745
}
}
3.2.返回结果说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 返回状态 |
| message | String | 返回结果描述 |
| data | object | 返回结果体 |
data 详情
| 字段 | 类型 | 说明 |
|---|---|---|
| location | Object | 经纬度点 |
| accuracy | double | 定位精度,单位m |
location 详情
| 字段 | 类型 | 说明 |
|---|---|---|
| lat | double | 纬度(WGS84) |
| lng | double | 经度(WGS84) |
4.请求示例

Author:admin Create time:2023-07-06 12:12
Last editor:admin Update time:2025-10-31 14:50
Last editor:admin Update time:2025-10-31 14:50