Location/get addr/en

跳转到: 导航, 搜索
(Created page with '== Location/get_addr == Returns the address by coordinate. === URL=== http://api.map.sina.com.cn/i/get_addr.php === Format=== xml/json === HTTP Request Method=== GET === Re…')
 
 
第42行: 第42行:
  
 
json Example:
 
json Example:
  说明:
+
   
 
  province:province
 
  province:province
 
  city:city
 
  city:city

2011年1月26日 (三) 11:44的最后版本

目录

Location/get_addr

Returns the address by coordinate.

URL

http://api.map.sina.com.cn/i/get_addr.php

Format

xml/json

HTTP Request Method

GET

Requires Authentication

false

Requests Count Limitation

true

Request Parameters

  • xy:coordinate
o usage: http://api.map.sina.com.cn/i/get_addr.php?xy=116.30987,39.98437
  • format:optional. value is xml or json. default is xml.
o usage: http://api.map.sina.com.cn/i/get_addr.php?xy=116.30987,39.98437&format=json


Response

XML Example:

Tag explanation:
xml:root node
 province:province
 city:city
 district:district
 addr:addr
<?xml version="1.0" encoding="utf-8"?>
<xml>
 <province>北京市</province>
 <city>北京市</city>
 <district>海淀区</district>
 <addr>海淀区北四环西路58号理想国际大厦1-3层</addr>
</xml>

json Example:

province:province
city:city
district:district
addr:address
{"province":"\u5317\u4eac\u5e02","city":"\u5317\u4eac\u5e02","district":"\u6d77\u6dc0\u533a","addr":"\u6d77\u6dc0\u533a\u5317\u56db \u73af\u897f\u8def58\u53f7\u7406\u60f3\u56fd\u9645\u5927\u53a61-3\u5c42"}

Example

Modify the appkey




Language: 中文  | English
文档更新时间: 2011-01-26