Distance/distance point

跳转到: 导航, 搜索
(请求参数)
(请求参数)
第52行: 第52行:
 
| 终点坐标y2
 
| 终点坐标y2
 
|}
 
|}
 +
 +
== '''返回结果''' ==
 +
 +
=== '''JSON示例''' ===
 +
<pre>
 +
{"distance":{"length":"123"},"distance_attr":{"versionname":"1.0.7.2"}}
 +
</pre>

2012年2月10日 (五) 11:04的版本

目录

distance/distance_point

计算地图上两点之间的距离

URL

http://api.t.sina.com.cn/location/distance/distance_point.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

GET


是否需要登录

true


请求数限制

true


请求参数

参数 必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份
x1 true float 起点坐标x1
y1 true float 起点坐标y1
x2 true float 终点坐标x2
y2 true float 终点坐标y2

返回结果

JSON示例

{"distance":{"length":"123"},"distance_attr":{"versionname":"1.0.7.2"}}