| 价格 | 月份 |
|---|---|
| ¥ 1000 | 1月 |
| ¥ 3000 | 6月 |
| ¥ 6000 | 12月 |
接口地址:https://www.xgapi.cn/api/mapAddress/api.php
返回格式:json
请求方式:GET
请求示例:https://www.xgapi.cn/api/mapAddress/api.php?apikey=你开通的apikey&keyword=搜索关键字 地点名称&limit=展示数量
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| apikey | 是 | string | 你开通的apikey |
| keyword | 是 | string | 搜索关键字 地点名称 |
| limit | 是 | string | 展示数量 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 1为成功 0为失败 |
| msg | string | 提示内容 |
| data.* | Array | 返回的数据 |
{
"code": 1,
"msg": "搜索成功",
"data": [
{
"place_id": 205509053,
"osm_type": "relation",
"osm_id": 9511883,
"lat": "39.9172757",
"lon": "116.3907694",
"class": "boundary",
"type": "historic",
"place_rank": 25,
"importance": 0.5899614292476507,
"addresstype": "historic",
"name": "故宫",
"display_name": "故宫, 东华门街道, 首都功能核心区, 东城区, 北京市, 100010, 中国",
"boundingbox": [
"39.9116214",
"39.9211913",
"116.3862020",
"116.3953903"
]
}
]
}
| 错误码 | 说明 |
|---|---|
| 100 | 您的apikey值为空! |
| 101 | 您的apikey值不存在! |
| 102 | 当前来源地址不在白名单内! |
| 103 | 当前接口为实名认证后可用,请您先进行实名! |
| 104 | 当前接口为企业认证后可用,请您先进行企业认证! |
| 105 | 当前接口未通过审核或已停止运营! |
| 106 | 您的余额不足,请及时充值! |
| 107 | 您当前的接口免费期限已过期,请及时续费! |
| 108 | 您的点数包已用完,请及时充值! |
| 109 | 您的账号已被封禁,不可使用任何接口! |