查询省份 市/区(官方)
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>通过省份ID查询属于该省的所有市/区</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><a href="https://www.dianping.com/ajax/citylist/getDomesticCityByProvince">https://www.dianping.com/ajax/citylist/getDomesticCityByProvince</a></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求data</h5>
<ul>
<li>{"provinceId":省份ID}</li>
</ul>
<h5>是否需要Cookie</h5>
<ul>
<li>否</li>
</ul>
<h5>是否需要协议头</h5>
<ul>
<li>是</li>
<li>Content-Length: 17</li>
<li>Content-Type: application/json</li>
</ul>
<h5>参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">省份ID</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>省份ID,通过{查询全国省份}接口获得</td>
</tr>
</tbody>
</table>
<h5>返回示例(可直接解析Json)</h5>
<pre><code> {
&quot;cityList&quot;: [
{
&quot;cityId&quot;: 4462,
&quot;cityName&quot;: &quot;宝坻区&quot;,
&quot;provinceId&quot;: 2,
&quot;parentCityId&quot;: 10,
&quot;cityOrderId&quot;: 368,
&quot;isActiveCity&quot;: true,
&quot;cityEnName&quot;: &quot;baodi&quot;,
&quot;cityPyName&quot;: &quot;baodi&quot;,
&quot;cityAreaCode&quot;: &quot;022&quot;,
&quot;cityAbbrCode&quot;: &quot;BD&quot;,
&quot;isOverseasCity&quot;: false,
&quot;isScenery&quot;: false,
&quot;TuanGouFlag&quot;: 1,
&quot;cityLevel&quot;: 100,
&quot;appHotLevel&quot;: 1,
&quot;gLat&quot;: 39.716965,
&quot;gLng&quot;: 117.308094,
&quot;standardEnName&quot;: &quot;baodi&quot;
},
{
&quot;cityId&quot;: 436,
&quot;cityName&quot;: &quot;蓟州区&quot;,
&quot;provinceId&quot;: 2,
&quot;parentCityId&quot;: 10,
&quot;cityOrderId&quot;: 2264,
&quot;isActiveCity&quot;: true,
&quot;cityEnName&quot;: &quot;jixian&quot;,
&quot;cityPyName&quot;: &quot;jixian&quot;,
&quot;cityAreaCode&quot;: &quot;022&quot;,
&quot;cityAbbrCode&quot;: &quot;JX&quot;,
&quot;isOverseasCity&quot;: false,
&quot;isScenery&quot;: false,
&quot;TuanGouFlag&quot;: 1,
&quot;cityLevel&quot;: 100,
&quot;appHotLevel&quot;: 0,
&quot;gLat&quot;: 40.045342,
&quot;gLng&quot;: 117.407449,
&quot;directURL&quot;: &quot;&quot;
},
{
&quot;cityId&quot;: 438,
&quot;cityName&quot;: &quot;静海区&quot;,
&quot;provinceId&quot;: 2,
&quot;parentCityId&quot;: 10,
&quot;cityOrderId&quot;: 2552,
&quot;isActiveCity&quot;: true,
&quot;cityEnName&quot;: &quot;jinghai&quot;,
&quot;cityPyName&quot;: &quot;jinghai&quot;,
&quot;cityAreaCode&quot;: &quot;022&quot;,
&quot;cityAbbrCode&quot;: &quot;JH&quot;,
&quot;isOverseasCity&quot;: false,
&quot;isScenery&quot;: false,
&quot;TuanGouFlag&quot;: 1,
&quot;cityLevel&quot;: 100,
&quot;appHotLevel&quot;: 0,
&quot;gLat&quot;: 38.935671,
&quot;gLng&quot;: 116.925304,
&quot;directURL&quot;: &quot;&quot;
},
{
&quot;cityId&quot;: 437,
&quot;cityName&quot;: &quot;宁河区&quot;,
&quot;provinceId&quot;: 2,
&quot;parentCityId&quot;: 10,
&quot;cityOrderId&quot;: 3884,
&quot;isActiveCity&quot;: true,
&quot;cityEnName&quot;: &quot;ninghe&quot;,
&quot;cityPyName&quot;: &quot;ninghe&quot;,
&quot;cityAreaCode&quot;: &quot;022&quot;,
&quot;cityAbbrCode&quot;: &quot;NH&quot;,
&quot;isOverseasCity&quot;: false,
&quot;isScenery&quot;: false,
&quot;TuanGouFlag&quot;: 1,
&quot;cityLevel&quot;: 100,
&quot;appHotLevel&quot;: 0,
&quot;gLat&quot;: 39.328886,
&quot;gLng&quot;: 117.82828,
&quot;directURL&quot;: &quot;&quot;
},
{
&quot;cityId&quot;: 10,
&quot;cityName&quot;: &quot;天津&quot;,
&quot;provinceId&quot;: 2,
&quot;parentCityId&quot;: 0,
&quot;cityOrderId&quot;: 5104,
&quot;isActiveCity&quot;: true,
&quot;cityEnName&quot;: &quot;tianjin&quot;,
&quot;cityPyName&quot;: &quot;tianjin&quot;,
&quot;cityAreaCode&quot;: &quot;022&quot;,
&quot;cityAbbrCode&quot;: &quot;TJ&quot;,
&quot;isOverseasCity&quot;: false,
&quot;isScenery&quot;: false,
&quot;TuanGouFlag&quot;: 1,
&quot;cityLevel&quot;: 2,
&quot;appHotLevel&quot;: 1,
&quot;gLat&quot;: 39.120876,
&quot;gLng&quot;: 117.21503,
&quot;directURL&quot;: &quot;&quot;
},
{
&quot;cityId&quot;: 4456,
&quot;cityName&quot;: &quot;武清区&quot;,
&quot;provinceId&quot;: 2,
&quot;parentCityId&quot;: 10,
&quot;cityOrderId&quot;: 5542,
&quot;isActiveCity&quot;: true,
&quot;cityEnName&quot;: &quot;wuqing&quot;,
&quot;cityPyName&quot;: &quot;wuqing&quot;,
&quot;cityAreaCode&quot;: &quot;022&quot;,
&quot;cityAbbrCode&quot;: &quot;WQ&quot;,
&quot;isOverseasCity&quot;: false,
&quot;isScenery&quot;: false,
&quot;TuanGouFlag&quot;: 1,
&quot;cityLevel&quot;: 100,
&quot;appHotLevel&quot;: 1,
&quot;gLat&quot;: 39.376925,
&quot;gLng&quot;: 117.057959,
&quot;standardEnName&quot;: &quot;wuqing&quot;
}
]
}
</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">cityList[cityList成员位置].cityId</td>
<td style="text-align: left;">text</td>
<td>市/区ID</td>
</tr>
<tr>
<td style="text-align: left;">cityList[cityList成员位置].cityName</td>
<td style="text-align: left;">text</td>
<td>市/区名称</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>接口限制{无}</li>
<li>接口返回如果编码异常请转换编码</li>
<li>接口为官方接口,稳定性/速度性较强</li>
</ul>