2/location/geo/ip to geo/en

跳转到: 导航, 搜索
(Created page with '{{api_desc_v2| uri=location/geo/ip_to_geo| desc=根据IP地址返回地理信息坐标| httpMethod=GET| needAuth=是| level={{Api_L1}}| rateLimit=是| params={{api_args|ip|true|s…')
 
 
第1行: 第1行:
{{api_desc_v2|
+
{{api_desc_v2_en|
 
uri=location/geo/ip_to_geo|
 
uri=location/geo/ip_to_geo|
desc=根据IP地址返回地理信息坐标|
+
desc=Return geography information coordinate by IP.|
 
httpMethod=GET|
 
httpMethod=GET|
needAuth=|
+
needAuth=true|
level={{Api_L1}}|
+
level={{Api_L1_en}}|
rateLimit=|
+
rateLimit=true|
params={{api_args|ip|true|string|需要获取坐标的IP地址,多个IP用逗号分隔,最多不超过10个。}}|
+
params={{api_args|ip|true|string|IP address.These are separated by comma,and are limited by 10.}}|
 
result=
 
result=
 
<pre>
 
<pre>
第26行: 第26行:
 
}
 
}
 
</pre>|
 
</pre>|
resultDes={{Rdes_geocode}}|
+
resultDes={{Rdes_geocode_en}}|
useAge=|
+
useAge=None|
otherInfo=
+
otherInfo=None
 
}}
 
}}

2012年1月30日 (一) 10:48的最后版本

location/geo/ip_to_geo

Return geography information coordinate by IP.

URL

https://api.weibo.com/2/location/geo/ip_to_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.
ip true string IP address.These are separated by comma,and are limited by 10.

Notes

None

Response

JSON Example

{
    "geos": [
        {
            "ip": "60.194.172.177",
            "longitude": "116.39794",
            "latitude": "39.90817",
            "city": "11",
            "province": "32",
            "city_name": "北京",
            "province_name": "朝阳区",
            "pinyin": "beijing",
            "more": "中国 北京 北京 电信通"
        },
        ...
    ]
}

See the Error Code Description for the error information details.

Field Description

Returned Field Field Type Field Description
longitude string Longitude coordinate
latitude string Latitude coordinate
city string City code
province string Province code
city_name string City name
province_name string Province name
address string Practical address,can be null
pinyin string Pinyin of address,not returned sometimes
more string More information,not returned sometimes

Others

None



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


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