2/location/pois/search/by area/en
location/pois/search/by_area
Return POI informations according to rectangular area by keyword.
URL
https://api.weibo.com/2/location/pois/search/by_area.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
true
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
Level:Normal
Count Limitation:true
See the Interface Access Rights Statement for the request count limitation details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | false | string | This parameter is not needed when using OAuth.The value of this parameter is the AppKey. |
access_token | false | string | This parameter is required when using OAuth.You will get the access_token after oauth authorization. |
q | false | string | Keyword to be queried.It must be encoded by URLencode.Parameter 'q' or parameter 'category' must be provided. |
category | false | string | Classification code to be queried.Parameter 'q' or parameter 'category' must be provided.See 'classification code mapping table' for the value range. |
coordinates | true | string | Rectangular area coordinates.The first coordinate is upper left point,and the second coordinate is lower right point.Longitude and latitude are separated by comma.Coordinates are separated by “|”. Example:coordinates=116.37,39.93|116.43,39.91 |
city | false | string | City code.Default is countrywide. |
page | false | int | The returned page.Default is 1.The max value is 40. |
count | false | int | The returned count for every page.Default is 10.The max value is 20. |
Notes
None
Response
JSON Example
{ "coordinates": "116.37,39.93|116.43,39.91", "pois": [ { "pid": "P010A00CHR9", "longitude": "116.39794", "latitude": "39.90817", "name": "理想国际大厦", "city_name": "北京", "province_name": "北京", "address": "北四环西路58号", "telephone": "62670000", "category": "110201", "navigator": "写字楼", "pic_url": "http://sinaimg/34759324759.jpg" }, ... ], "total_number": 36 }
See the Error Code Description for the error information details.
Field Description
None
Others
None