2/location/pois/add/en

跳转到: 导航, 搜索

location/pois/add

Create a new POI information.

URL

https://api.weibo.com/2/location/pois/add.json

Supported Formats

JSON

HTTP Request Method

POST

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.
srcid true int Source ID.It is created by the user,and is used for getting the POI information created by the user.It's 2-8 digits.
name true string POI name.It's no more than 30 characters.It must be encoded by UTF-8.
address true string POI address.It's no more than 60 characters.It must be encoded by UTF-8.
city_name true string City Chinese name of POI.It's no more than 30 characters.It must be encoded by UTF-8.
category true string Category Chinese name of POI.It's no more than 30 characters.It must be encoded by UTF-8.
longitude true string Longitude of POI.It is from 2 to 15 characters.The value is from 180 to -180.
latitude true string Latitude of POI.It is from 2 to 15 characters.The value is from 90 to -90.
telephone false string Telephone of POI.It's no more than 14 characters.
pic_url false string Picture url of POI.It's no more than 60 characters.
url false string URL of POI.It's no more than 60 characters.
tags false string Tags of POI.These are separated by comma.It's no more than 60 characters.It must be encoded by UTF-8.
description false string Description of POI.It's no more than 120 characters.It must be encoded by UTF-8.
intro false string Other special information of POI.It's no more than 120 characters,and can be provided through JSON.It must be encoded by UTF-8.
traffic false string Traffic condition description of POI.It's no more than 120 characters.It must be encoded by UTF-8.

Notes

The parameter is not be checked whether it is right if the parameter is false.

Response

JSON Example

{
    "srcid": "20",
    "longitude": "116.39794",
    "latitude": "39.90817",
    "name": "理想国际大厦",
    "city_name": "北京",
    "address": "北四环西路58号",
    "telephone": "62670000",
    "category": "大厦",
    "description": "地点简介",
    "intro": [...],
    "tags": "互联网",
    "url": "http://www.sina.com.cn/",
    "traffic": "交通换乘信息描述",
    "deal": "0",
    "pid": "P010A00CHR9"
}

See the Error Code Description for the error information details.

Field Description

None

Others

None



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


文档更新时间: 2012-01-30