- 一个会员资源包即可调用【所有会员接口】
- 注册即免费送会员包(流量次数限制)
- if (会员包到期 or 次数用完 or 流量用完) then 会员包失效 end
- 可购买多个资源包,会自动递延生效串联使用
116.32298703399
让网络数据像水、电一样, 使用容易、自由和便宜
已为3000多家企业提供API服务
非文件上传的POST时,请设置headers['Content-Type'] = 'application/x-www-form-urlencoded',
并把对象形式的数据转成查询字符串
文件上传的POST时,请设置headers['Content-Type'] = 'multipart/form-data'
参数名称 | 类型 | 示例值 | 必须 | 描述 |
---|---|---|---|---|
showapi_appid | String | 100 | 是 | 易源应用id |
showapi_sign | String | 698d51a19d8a121ce581499d7b701668 | 是 | 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选【简单密钥方式】,在url后带上showapi_appid和showapi_sign即可 |
showapi_timestamp | String | 20141114142239 | 否 | 客户端时间。
格式yyyyMMddHHmmss,如20141114142239 为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。 |
showapi_res_gzip | String | 1或0 | 否 | 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 |
... |
参数名称 | 类型 | 默认值 | 示例值 | 必须 | 描述 |
---|---|---|---|---|---|
lng | String |
116.32298703399
|
是 |
经度
|
|
lat | String |
39.983424051248
|
是 |
维度
|
|
from | String |
5
|
是 |
经纬度类型 输入的坐标类型: 1:GPS设备获取的角度坐标; 2:GPS获取的米制坐标、sogou地图所用坐标; 3:google地图、soso地图、aliyun地图、mapabc地图和amap地图所用坐标 4:3中列表地图坐标对应的米制坐标 5:百度地图采用的经纬度坐标 6:百度地图采用的米制坐标 7:mapbar地图坐标; 8:51地图坐标
|
|
... |
以JSON格式返回结果。
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
showapi_res_body | String | {"city":"昆明","prov":"云南"} | 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 |
showapi_res_code | int | 0 |
易源返回标志,0为成功,其他为失败。
0成功 -1,系统调用错误 -2,可调用次数或金额为0 -3,读取超时 -4,服务端返回数据解析错误 -5,后端服务器DNS解析错误 -6,服务不存在或未上线 -7, API创建者的网关资源不足 -1000,系统维护 -1002,showapi_appid字段必传 -1003,showapi_sign字段必传 -1004,签名sign验证有误 -1005,showapi_timestamp无效 -1006,app无权限调用接口 -1007,没有订购套餐 -1008,服务商关闭对您的调用权限 -1009,调用频率受限 -1010,找不到您的应用 -1011,子授权app_child_id无效 -1012,子授权已过期或失效 -1013,子授权ip受限 -1014,token权限无效 |
showapi_res_error | String | 用户输入有误! | 错误信息的展示 |
showapi_res_id | String | ce135f6739294c63be0c021b76b6fbff | 本次请求id |
... |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
addressComponent | Object |
|
|
- direction | String |
附近
|
|
- street | String |
中关村大街
|
|
- country_code_iso2 | String |
CN
|
|
- country_code | Number |
0
|
|
- city_level | Number |
2
|
|
- country | String |
中国
|
|
- city | String |
北京市
|
|
- distance | String |
7
|
|
- province | String |
北京市
|
|
- adcode | String |
110108
|
|
- street_number | String |
27号1101-08室
|
|
- country_code_iso | String |
CHN
|
|
- town | String |
海淀街道
|
|
- district | String |
海淀区
|
|
poiRegions | Object[] |
|
|
- 0 | Object |
|
|
- uid | String |
06d2dffdaef1b7ef88f15d04
|
|
- distance | String |
0
|
|
- tag | String |
房地产;写字楼
|
|
- name | String |
中关村大厦
|
|
- direction_desc | String |
内
|
|
ret_code | Number |
0
|
|
location | Object |
|
|
- lng | Number |
116.32
|
|
- lat | Number |
39.98
|
|
formatted_address | String |
北京市海淀区中关村大街27号1101-08室
|
|
pois | Object[] |
|
|
- 0 | Object |
|
|
- uid | String |
06d2dffdaef1b7ef88f15d04
|
|
- zip | String |
|
|
- point | Object |
|
|
- y | Number |
39.98
|
|
- x | Number |
116.32
|
|
- poiType | String |
房地产
|
|
- distance | String |
0
|
|
- cp | String |
|
|
- tag | String |
房地产;写字楼
|
|
- direction | String |
内
|
|
- tel | String |
|
|
- name | String |
中关村大厦
|
|
- addr | String |
北京市海淀区中关村大街27号
|
|
- parent_poi | Object |
|
|
- uid | String |
|
|
- point | Object |
|
|
- y | Number |
0
|
|
- x | Number |
0
|
|
- distance | String |
|
|
- direction | String |
|
|
- tag | String |
|
|
- name | String |
|
|
- addr | String |
|
|
sematic_description | String |
中关村大厦内,眉州东坡酒楼(中关村店)附近5米
|
|
business | String |
中关村,人民大学,苏州街
|
|
roads | Object[] |
|
|
- 0 | Object |
|
|
- distance | String |
40
|
|
- name | String |
中关村大街辅路
|
|
- 1 | Object |
|
|
- distance | String |
59
|
|
- name | String |
中关村大街
|
|
... |
{
"showapi_res_error": "",
"showapi_res_id": "10b9ce633fb34734948e426343d849a2",
"showapi_res_code": 0,
"showapi_res_body": {
"addressComponent": {
"direction": "附近",
"street": "中关村大街",
"country_code_iso2": "CN",
"country_code": 0,
"city_level": 2,
"country": "中国",
"city": "北京市",
"distance": "7",
"province": "北京市",
"adcode": "110108",
"street_number": "27号1101-08室",
"country_code_iso": "CHN",
"town": "海淀街道",
"district": "海淀区"
},
"poiRegions": [
{
"uid": "06d2dffdaef1b7ef88f15d04",
"distance": "0",
"tag": "房地产;写字楼",
"name": "中关村大厦",
"direction_desc": "内"
}
],
"ret_code": 0,
"location": {
"lng": 116.32298703398993,
"lat": 39.983424122651655
},
"formatted_address": "北京市海淀区中关村大街27号1101-08室",
"pois": [
{
"uid": "06d2dffdaef1b7ef88f15d04",
"zip": "",
"point": {
"y": 39.98363109337608,
"x": 116.32288301021485
},
"poiType": "房地产",
"distance": "0",
"cp": "",
"tag": "房地产;写字楼",
"direction": "内",
"tel": "",
"name": "中关村大厦",
"addr": "北京市海淀区中关村大街27号",
"parent_poi": {
"uid": "",
"point": {
"y": 0,
"x": 0
},
"distance": "",
"direction": "",
"tag": "",
"name": "",
"addr": ""
}
},
{
"uid": "2c0bd6c57dbdd3b342ab9a8c",
"zip": "",
"point": {
"y": 39.98343759607948,
"x": 116.32293690854546
},
"poiType": "美食",
"distance": "5",
"cp": " ",
"tag": "美食;中餐厅",
"direction": "附近",
"tel": "",
"name": "眉州东坡酒楼(中关村店)",
"addr": "北京市海淀区中关村大街27号中关村大厦二层",
"parent_poi": {
"uid": "06d2dffdaef1b7ef88f15d04",
"point": {
"y": 39.98363109337608,
"x": 116.32288301021485
},
"distance": "32",
"direction": "附近",
"tag": "房地产;写字楼",
"name": "中关村大厦",
"addr": "北京市海淀区中关村大街27号"
}
},
{
"uid": "14076deea757edf402294f41",
"zip": "",
"point": {
"y": 39.98372784181723,
"x": 116.32300877298626
},
"poiType": "金融",
"distance": "44",
"cp": " ",
"tag": "金融;银行",
"direction": "附近",
"tel": "",
"name": "中国建设银行(中关村支行)",
"addr": "北京市海淀区中关村大街27号中关村大厦1层(近海淀医院)",
"parent_poi": {
"uid": "06d2dffdaef1b7ef88f15d04",
"point": {
"y": 39.98363109337608,
"x": 116.32288301021485
},
"distance": "32",
"direction": "附近",
"tag": "房地产;写字楼",
"name": "中关村大厦",
"addr": "北京市海淀区中关村大街27号"
}
}
],
"sematic_description": "中关村大厦内,眉州东坡酒楼(中关村店)附近5米",
"business": "中关村,人民大学,苏州街",
"roads": [
{
"distance": "40",
"name": "中关村大街辅路"
},
{
"distance": "59",
"name": "中关村大街"
}
]
}
}
用户名: showapi
电话: 4009988033
微博: http://www.weibo.com/showapi
邮箱:
QQ: 3007663665
微信: show_api (公众号)