POI范围搜索
提供指定区域范围内查询所有POI信息。
请求路径
/geo/v2/poi/range
参数
查询参数
请求示例
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your_api_host/geo/v2/poi/range?location=116.40528,39.90498&type=scenic&radius=10'请将your_token替换为你的JWT身份认证,将your_api_host替换为你的API Host
返回数据
返回数据是JSON格式并进行了Gzip压缩。
{
"code": "200",
"poi": [
{
"name": "中山公园",
"id": "10101010016A",
"lat": "39.90999985",
"lon": "116.38999939",
"adm2": "北京",
"adm1": "北京",
"country": "中国",
"tz": "Asia/Shanghai",
"utcOffset": "+08:00",
"isDst": "0",
"type": "scenic",
"rank": "86",
"fxLink": "https://www.qweather.com"
},
{
"name": "故宫博物院",
"id": "10101010018A",
"lat": "39.90999985",
"lon": "116.38999939",
"adm2": "北京",
"adm1": "北京",
"country": "中国",
"tz": "Asia/Shanghai",
"utcOffset": "+08:00",
"isDst": "0",
"type": "scenic",
"rank": "67",
"fxLink": "https://www.qweather.com"
},
{
"name": "北京市规划展览馆",
"id": "10101010002A",
"lat": "39.88999939",
"lon": "116.40000153",
"adm2": "北京",
"adm1": "北京",
"country": "中国",
"tz": "Asia/Shanghai",
"utcOffset": "+08:00",
"isDst": "0",
"type": "scenic",
"rank": "68",
"fxLink": "https://www.qweather.com"
},
{
"name": "老舍茶馆",
"id": "10101010021A",
"lat": "39.88999939",
"lon": "116.38999939",
"adm2": "北京",
"adm1": "北京",
"country": "中国",
"tz": "Asia/Shanghai",
"utcOffset": "+08:00",
"isDst": "0",
"type": "scenic",
"rank": "86",
"fxLink": "https://www.qweather.com"
},
{
"name": "景山公园",
"id": "10101010012A",
"lat": "39.91999817",
"lon": "116.38999939",
"adm2": "北京",
"adm1": "北京",
"country": "中国",
"tz": "Asia/Shanghai",
"utcOffset": "+08:00",
"isDst": "0",
"type": "scenic",
"rank": "67",
"fxLink": "https://www.qweather.com"
}
],
"refer": {
"sources": [
"QWeather"
],
"license": [
"QWeather Developers License"
]
}
}
-
code请参考状态码 -
poi.namePOI(兴趣点)名称 -
poi.idPOI(兴趣点)ID -
poi.latPOI(兴趣点)纬度 -
poi.lonPOI(兴趣点)经度 -
poi.adm2POI(兴趣点)的上级行政区划名称 -
poi.adm1POI(兴趣点)所属一级行政区域 -
poi.countryPOI(兴趣点)所属国家名称 -
poi.tzPOI(兴趣点)所在时区 -
poi.utcOffsetPOI(兴趣点)目前与UTC时间偏移的小时数,参考详细说明 -
poi.isDstPOI(兴趣点)是否当前处于夏令时。1表示当前处于夏令时,0表示当前不是夏令时 -
poi.typePOI(兴趣点)的属性 -
poi.rank地区评分 -
poi.fxLink该地区的天气预报网页链接,便于嵌入你的网站或应用 -
refer.sources原始数据来源,或数据源说明,可能为空 -
refer.license数据许可或版权声明,可能为空