附近回收门店
按经纬度返回最近的回收门店,最多 10 家,只包含开通了收书的门店。不传坐标就用账号上的坐标,再没有就用已保存地址的坐标。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/address/nearest |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
lat | Double | 否 | URL 参数 |
lon | Double | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/address/nearest?lat=xxx&lon=xxx' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为数组,每项结构见下方字段说明。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": [
{
"id": 1,
"userId": 1,
"userName": "string",
"telNumber": "string",
"postalCode": "string",
"nationalCode": "string",
"provinceName": "string",
"cityName": "string",
"countyName": "string",
"detailInfo": "string",
"lat": 0.0,
"lon": 0.0,
"addTime": "string",
"updateTime": "string",
"addressType": "...",
"recyclePoint": 1,
"addressTypeDesc": "string",
"distanceKm": 0.0,
"fullRegion": "string",
"allInfo": "string"
}
]
}