(创建新页面为 '{{api_desc_v2| uri=location/geo/gps_to_offset| desc=根据GPS坐标获取偏移后的坐标| httpMethod=GET| needAuth=是| level={{Api_L1}}| rateLimit=是| params={{api_args|coo…') |
|||
(未显示2个用户的2个中间版本) | |||
第7行: | 第7行: | ||
rateLimit=是| | rateLimit=是| | ||
params={{api_args|coordinate|true|string|需要获取偏移坐标的源坐标,经度纬度用逗号分隔。}}| | params={{api_args|coordinate|true|string|需要获取偏移坐标的源坐标,经度纬度用逗号分隔。}}| | ||
+ | apiToolPara=key1=coordinate&value1=116.31635,39.97948| | ||
+ | relat_qa=<html><div id="relat_qa" data="location/geo/gps_to_offset"></div></html>| | ||
result= | result= | ||
<pre> | <pre> | ||
第18行: | 第20行: | ||
} | } | ||
</pre>| | </pre>| | ||
− | resultDes= | + | resultDes={{Rdes_geocode_s}}| |
useAge=无| | useAge=无| | ||
otherInfo=无 | otherInfo=无 | ||
− | }} | + | }}{{#a:showgrade}} |
2012年11月16日 (五) 15:08的最后版本
location/geo/gps_to_offset
根据GPS坐标获取偏移后的坐标
URL
https://api.weibo.com/2/location/geo/gps_to_offset.json
支持格式
JSON
HTTP请求方式
GET
是否需要登录
是
关于登录授权,参见 如何登录授权
访问授权限制
访问级别:普通接口
频次限制:是
关于频次限制,参见 接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
coordinate | true | string | 需要获取偏移坐标的源坐标,经度纬度用逗号分隔。 |
注意事项
无
调用样例及调试工具
返回结果
JSON示例
{ "geos": [ { "longitude": "116.39794", "latitude": "39.90817" } ] }
关于错误返回值与错误代码,参见 错误代码说明
返回字段说明
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
longitude | string | 偏转后的经度坐标 |
latitude | string | 偏转后的纬度坐标 |
其他
无
相关问题
到 帮助中心 查看更多问题或提问
文档更新时间: 2012-11-16