2/location/pois/search/by geo/en
location/pois/search/by_geo
Return POI informations according to coordinate range by keyword.
URL
https://api.weibo.com/2/location/pois/search/by_geo.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. |
coordinate | false | string | Center coordinate.Longitude and latitude are separated by comma.Parameter 'coordinate' or parameter 'pid' must be provided.'pid' is priority selection. |
pid | false | string | ID of center POI.Parameter 'coordinate' or parameter 'pid' must be provided.'pid' is priority selection. |
city | false | string | City code.Default is countrywide. |
range | false | string | Radius.Default is 500.The max value is 500. |
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
{ "center_poi": { "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" }, "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
文档更新时间: 2012-01-30