C/2/place/nearby/pois/biz-en

跳转到: 导航, 搜索
(以“{{Api_desc_business_en| uri=place/nearby/pois/biz| desc=获取附近地点。| httpMethod=GET| needAuth=true| rateLimit={{B_rate_limit_en}}| params={{api_args|lat|tr...”为内容创建页面)
 
 
第1行: 第1行:
 
{{Api_desc_business_en|
 
{{Api_desc_business_en|
 
uri=place/nearby/pois/biz|
 
uri=place/nearby/pois/biz|
desc=获取附近地点。|
+
desc=Return POI nearby.|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=true|
 
needAuth=true|
第9行: 第9行:
 
{{api_args|range|false|int|Range of search, with unit of meter, maximum 10000, default as 2000.}}
 
{{api_args|range|false|int|Range of search, with unit of meter, maximum 10000, default as 2000.}}
 
{{api_args|q|false|string|Keyword for search, must be URL encoded.}}
 
{{api_args|q|false|string|Keyword for search, must be URL encoded.}}
{{api_args|category|false|string|查询的分类代码,取值范围见:分类代码对应表。}}
+
{{api_args|category|false|string|Category code to search, refer to Category Code Table for value range.}}
 
{{api_args|count|false|int|Records returned within one page, maximum 50, default as 20.}}
 
{{api_args|count|false|int|Records returned within one page, maximum 50, default as 20.}}
 
{{api_args|page|false|int|The page number of returned results, defaults as 1.}}
 
{{api_args|page|false|int|The page number of returned results, defaults as 1.}}

2015年7月23日 (四) 11:58的最后版本

place/nearby/pois/biz

Return POI nearby.

URL

https://c.api.weibo.com/2/place/nearby/pois/biz.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


Request all APIs:

    • 50000/hour/IP;

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.
lat true float Latitude, range from -90.0 to +90.0, in which '+' means North, default as 0.0.
long true float Longitude, range from -180.0 to +180.0, in which '+' means East, default as 0.0.
range false int Range of search, with unit of meter, maximum 10000, default as 2000.
q false string Keyword for search, must be URL encoded.
category false string Category code to search, refer to Category Code Table for value range.
count false int Records returned within one page, maximum 50, default as 20.
page false int The page number of returned results, defaults as 1.
sort false int Sort method. 0 for weighted value, 1 for distance, 3 for number of checked-in users, default as 0.
offset false int Whether lat and long numbers are calibrated, 0 for false, 1 for true, default as 0.

Notes

none

Response

JSON Example

//成功返回
{
    "pois": [
        {
            "poiid": "B2094654D069A6F4419C",
            "title": "三个贵州人(中关村店)",
            "address": "北四环西路58号理想国际大厦202-205",
            "lon": "116.30999",
            "lat": "39.98435",
            "category": "83",
            "city": "0010",
            "province": null,
            "country": null,
            "url": "",
            "phone": "010-82607678",
            "postcode": "100000",
            "weibo_id": "0",
            "categorys": "64 69 83",
            "category_name": "云贵菜",
            "icon": "http://u1.sinaimg.cn/upload/2012/03/23/1/xysh.png",
            "checkin_num": 0,
            "checkin_user_num": "0",
            "tip_num": 0,
            "photo_num": 0,
            "todo_num": 0,
            "distance": 70
        },
        ...
    ],
    "total_number": 200
}
//失败返回
{
    "request": "/place/nearby/pois/biz.json",
    "error_code": XXXXX,
    "error": "error message."
}

See the Error Code Description for the error information details.

Field Description

none

Others

none

Language: [[{{{2/uri}}}|中文]]


文档更新时间: 2015-07-23
api评价