圆形区域检索
GET
/place/v2/search
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.map.baidu.com/place/v2/search?query=银行&location=39.915,116.404&ak=&sn='
响应示例响应示例
{
"message": "string",
"total": 0,
"name": "string",
"status": 0,
"result_type": "string",
"location": {
"lat": 0,
"lng": 0
},
"address": "string",
"province": "string",
"city": "string",
"area": "string",
"adcode": 0,
"telephone": "string",
"uid": "string",
"street_id": "string",
"detail": "string",
"detail_info": {
"distance": 0,
"type": "string",
"tag": "string",
"navi_location": {
"lng": 0,
"lat": 0,
"alias": "string",
"detail_url": "string"
},
"children": {
"uid": "string",
"name": "string",
"show_name": "string",
"tag": "string"
},
"location": {
"lat": 0,
"lng": 0,
"address": "string",
"price": "string"
},
"shop_hours": "string",
"overall_rating": "string",
"taste_rating": "string",
"service_rating": "string",
"environment_rating": "string",
"facility_rating": "string",
"hygiene_rating": "string",
"technology_rating": "string",
"image_num": "string",
"groupon_num": 0,
"discount_num": 0,
"comment_num": "string",
"favorite_num": "string",
"checkin_num": "string",
"brand": "string",
"content_tag": "string",
"photos": [
"string"
]
}
}
请求参数
Query 参数
query
string
必需
示例值:
银行
tag
string
可选
示例值:
炒面
location
string
必需
示例值:
39.915,116.404
radius
string
可选
示例值:
2000
radius_limit
string
可选
示例值:
true
extensions_adcode
string
可选
示例值:
json
output
string
可选
示例值:
xml
scope
string
可选
示例值:
1
filter
string
可选
示例值:
sort_name:distance|sort_rule:1
coord_type
integer
可选
示例值:
3
ret_coordtype
string
可选
示例值:
gcj02ll
page_size
integer
可选
示例值:
10
page_num
integer
可选
示例值:
0
timestamp
string
可选
photo_show
string
可选
示例值:
true
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 01:56:09