2/location/geo/address to geo/en

跳转到: 导航, 搜索

location/geo/address_to_geo

Return geography information coordinate by practical address.

URL

https://api.weibo.com/2/location/geo/address_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.
address true string Practical address.It must be encoded by URLencode.

Notes

None

Response

JSON Example

{
    "geos": [
        {
            "longitude": "116.39794",
            "latitude": "39.90817",
            "city": "11",
            "province": "32",
            "city_name": "北京",
            "province_name": "朝阳区",
            "address": "中国北京市海淀区中关村"
        }
    ]
}

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