menu 云析API铺 - 云析文档平台 公告 打赏
star_border

行政区划

使用教程


请求地址 http://api.zhyunxi.com/api.php?api=24&key=你的KEY&name=城市名

返回示例 {"code":0,"msg":"success","data":[{"name":"中国","isa":"国家","geometry":"","include":["北京市","天津市","河北省","山西省","内蒙古自治区","辽宁省","吉林省","黑龙江省","上海市","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","广东省","广西壮族自治区","海南省","重庆市","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","宁夏回族自治区","新疆维吾尔自治区","中国台湾","中国香港","中国澳门"]}]}

Example

返回参数

返回参数类型说明
code Int 状态码
msg String 返回说明
data[0].name String 城市名
data[0].isa String 级别
data[0].geometry String 地理坐标
data[0].include String 包含下级

						<br><br>
<table class="mdui-table"><thead><tr>
<th>返回参数</th><th>类型</th><th>说明</th></tr></thead><tbody>
<tr><td><code>code</code></td>
<td>Int</td>
<td>状态码</tr>
<tr><td><code>msg</code></td>
<td>String</td>
<td>返回说明</tr>
<tr><td><code>data[0].name</code></td>
<td>String</td>
<td>城市名</tr>
<tr><td><code>data[0].isa</code></td>
<td>String</td>
<td>级别</tr>
<tr><td><code>data[0].geometry</code></td>
<td>String</td>
<td>地理坐标</tr>
<tr><td><code>data[0].include</code></td>
<td>String</td>
<td>包含下级</tr>
</tbody></table>
					

请求参数

请求参数必填类型说明
api String 接口id
key String 你的key
name String 城市名(具体城市名:查询具体城市信息;中国/空:查询所有省份;默认为空)