周边搜索
GET
/rest/lbs/geohub/place/around
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://restapi.amap.com/rest/lbs/geohub/place/around?dataset_id&location&radius&Key='
响应示例响应示例
{
"type": "string",
"properties": {
"status": {
"type": "string",
"description": "string"
},
"info": {
"type": "string",
"description": "string"
},
"infocode": {
"type": "string",
"description": "string"
},
"count": {
"type": "string",
"description": "string"
},
"objects": {
"type": "string",
"properties": {
"geometry": {
"type": "string",
"properties": {
"coordinates": {
"oneOf": [
{
"type": "string",
"items": {
"type": "string"
}
}
],
"description": "string"
},
"type": {
"type": "string",
"description": "string"
}
},
"required": [
"string"
]
},
"properties": {
"type": "string",
"properties": {
"property1": {
"type": "string",
"properties": {
"name": {
"type": "string",
"description": "string"
},
"value": {
"oneOf": [
{
"type": "string"
}
],
"description": "string"
}
},
"required": [
"string"
]
},
"property2": {
"type": "string",
"properties": {
"name": {
"type": "string",
"description": "string"
},
"value": {
"oneOf": [
{
"type": "string"
}
],
"description": "string"
}
},
"required": [
"string"
]
}
},
"required": [
"string"
]
}
},
"description": "string",
"required": [
"string"
]
}
},
"required": [
"string"
]
}
请求参数
Query 参数
dataset_id
string
必需
location
string
必需
radius
string
必需
properties
string
可选
筛选条件 各属性类型支持的操作, JSON数据, 示例: { "relation": "and", // 各个属性间的或与操作, 可选and,&&,or,|| "conditions": [{ "field": "alias", // 属性名 "operation": "like", // 逻辑操作, 可选equal,=,not_equal,<>,greater,>,greater_equal,>=,less,<,less_equal,<=,in,like_any,like,not_like "value": "别名" // 属性值 }] } 两层逻辑(age字段>1且<10)示例: { "relation": "and", "conditions": [{ "field": "age", "relation": "and", "conditions":[{ "operation": ">", "value": 1 },{ "operation": "<", "value": 10 }] }] }
offset
string
可选
page
string
当前页数 整型
sig
string
可选
output
string
可选
callback
string
可选
返回响应
修改于 2022-03-22 13:32:12