电池详情-轨迹回放
<h5>简要描述</h5>
<ul>
<li>电池详情-轨迹回放接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/gateway/liyuan_device/battery/info/replaying</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">bt</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">stirng</td>
<td>设备号</td>
</tr>
<tr>
<td style="text-align: left;">startTime</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">Date</td>
<td>开始时间</td>
</tr>
<tr>
<td style="text-align: left;">endTime</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">Date</td>
<td>结束时间</td>
</tr>
<tr>
<td style="text-align: left;">merchantId</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">Long</td>
<td>所属客户</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 0,
"info": [
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"latitude": "23.13533631",
"longitude": "01102001",
"mileage": "100.00",
"speed": "10.1",
"status": 1,
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"latitude": "23.13533631",
"longitude": "01102001",
"mileage": "100.00",
"speed": "10.1",
"status": 1,
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"latitude": "23.13533631",
"longitude": "01102001",
"mileage": "100.00",
"speed": "10.1",
"status": 1,
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"latitude": "23.13533631",
"longitude": "01102001",
"mileage": "100.00",
"speed": "10.1",
"status": 1,
"txnNo": 1234567890123
},
{
"batteryId": 631402131684851712,
"bt": "AVSASD",
"latitude": "23.13533631",
"longitude": "01102001",
"mileage": "100.00",
"speed": "10.1",
"status": 1,
"txnNo": 1234567890123
}
],
"tip": "请求成功"
}</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;">batteryId</td>
<td style="text-align: left;">Long</td>
<td>设备id</td>
</tr>
<tr>
<td style="text-align: left;">bt</td>
<td style="text-align: left;">string</td>
<td>设备号</td>
</tr>
<tr>
<td style="text-align: left;">longitude</td>
<td style="text-align: left;">string</td>
<td>经度</td>
</tr>
<tr>
<td style="text-align: left;">latitude</td>
<td style="text-align: left;">string</td>
<td>纬度</td>
</tr>
<tr>
<td style="text-align: left;">mileage</td>
<td style="text-align: left;">string</td>
<td>行驶里程</td>
</tr>
<tr>
<td style="text-align: left;">speed</td>
<td style="text-align: left;">string</td>
<td>行驶速度</td>
</tr>
<tr>
<td style="text-align: left;">status</td>
<td style="text-align: left;">int</td>
<td>状态0:移动 1:静止 2:存储 3:休眠</td>
</tr>
<tr>
<td style="text-align: left;">txnNo</td>
<td style="text-align: left;">Long</td>
<td>上报时间:13位时间戳</td>
</tr>
<tr>
<td style="text-align: left;">address</td>
<td style="text-align: left;">String</td>
<td>地址</td>
</tr>
<tr>
<td style="text-align: left;">createTime</td>
<td style="text-align: left;">Long</td>
<td>首次记录当前位置时间</td>
</tr>
<tr>
<td style="text-align: left;">endTime</td>
<td style="text-align: left;">Long</td>
<td>最后记录当前位置时间</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>