洞内人员信息
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>洞内人员位置信息接口</li>
<li>更新频率/分钟</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://IP地址:端口号/openApi/PersonnelPositioning/</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST 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;">api_key</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>认证凭证: 9792D4A611C3505F58F800D4080B84D6EB35934B</td>
</tr>
<tr>
<td style="text-align: left;">gettype</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>请求类型: PersonnelLineDetails</td>
</tr>
<tr>
<td style="text-align: left;">areaCode</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>请求区域: 需要全部区域的则不填,仅需部分区域的(英文逗号将区域编号拼接起来即可。。。如18,19)</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
&quot;api_key&quot;: &quot;9792D4A611C3505F58F800D4080B84D6EB35934B&quot;,
&quot;gettype&quot;: &quot;PersonnelLineDetails&quot;,
&quot;areaCode&quot;: &quot;&quot;
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: [
{
&quot;card_id&quot;: 100318,
&quot;areaCode&quot;: 18,
&quot;card_type&quot;: 2,
&quot;personName&quot;: &quot;周志伟&quot;,
&quot;personTypework&quot;: &quot;挖钻工&quot;,
&quot;personDepartment&quot;: &quot;泥工部&quot;,
&quot;personJobtitle&quot;: &quot;工人&quot;,
&quot;stationCode&quot;: 30003,
&quot;locationSite&quot;: &quot;501.51&quot;,
&quot;locationTime&quot;: &quot;2022-01-14 11:53:16&quot;,
&quot;locationHole&quot;: &quot;1501.51&quot;,
&quot;locationLine&quot;: &quot;6时3分44秒&quot;
},
{
&quot;card_id&quot;: 100317,
&quot;areaCode&quot;: 19,
&quot;card_type&quot;: 1,
&quot;personName&quot;: &quot;伍卫国&quot;,
&quot;personTypework&quot;: &quot;水泥工&quot;,
&quot;personDepartment&quot;: &quot;维修部&quot;,
&quot;personJobtitle&quot;: &quot;组长&quot;,
&quot;stationCode&quot;: 30003,
&quot;locationSite&quot;: &quot;1192.01&quot;,
&quot;locationTime&quot;: &quot;2022-01-14 11:53:16&quot;,
&quot;locationHole&quot;: &quot;2192.01&quot;,
&quot;locationLine&quot;: &quot;5时56分21秒&quot;
},
{
&quot;card_id&quot;: 61796,
&quot;areaCode&quot;: 18,
&quot;card_type&quot;: 3,
&quot;personName&quot;: &quot;万永禄&quot;,
&quot;personTypework&quot;: &quot;装载工&quot;,
&quot;personDepartment&quot;: &quot;工程部&quot;,
&quot;personJobtitle&quot;: &quot;&quot;,
&quot;stationCode&quot;: 30003,
&quot;locationSite&quot;: &quot;-1368.86&quot;,
&quot;locationTime&quot;: &quot;2022-01-14 11:53:16&quot;,
&quot;locationHole&quot;: &quot;-368.86&quot;,
&quot;locationLine&quot;: &quot;6时3分44秒&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;">code</td>
<td style="text-align: left;">int</td>
<td>返回状态:200成功,404失败</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>返回描述</td>
</tr>
<tr>
<td style="text-align: left;">card_id</td>
<td style="text-align: left;">int</td>
<td>定位卡号</td>
</tr>
<tr>
<td style="text-align: left;">areaCode</td>
<td style="text-align: left;">int</td>
<td>区域编号</td>
</tr>
<tr>
<td style="text-align: left;">card_type</td>
<td style="text-align: left;">int</td>
<td>报警类型:1标签正常、2电压过低、3紧急报警/SOS求助</td>
</tr>
<tr>
<td style="text-align: left;">personName</td>
<td style="text-align: left;">string</td>
<td>定位人员姓名</td>
</tr>
<tr>
<td style="text-align: left;">personTypework</td>
<td style="text-align: left;">string</td>
<td>定位人员工种</td>
</tr>
<tr>
<td style="text-align: left;">personDepartment</td>
<td style="text-align: left;">string</td>
<td>定位人员部门</td>
</tr>
<tr>
<td style="text-align: left;">personJobtitle</td>
<td style="text-align: left;">string</td>
<td>定位人员职务</td>
</tr>
<tr>
<td style="text-align: left;">stationCode</td>
<td style="text-align: left;">int</td>
<td>基站编号</td>
</tr>
<tr>
<td style="text-align: left;">locationSite</td>
<td style="text-align: left;">string</td>
<td>离基站距离(米)</td>
</tr>
<tr>
<td style="text-align: left;">locationTime</td>
<td style="text-align: left;">string</td>
<td>定位时间</td>
</tr>
<tr>
<td style="text-align: left;">locationHole</td>
<td style="text-align: left;">string</td>
<td>离洞口距离(米)</td>
</tr>
<tr>
<td style="text-align: left;">locationLine</td>
<td style="text-align: left;">string</td>
<td>洞内时长</td>
</tr>
</tbody>
</table>