POST api/Device/ReadAllInMapRange
根据地图范围查询设备
Request Information
URI Parameters
None.
Body Parameters
M_MapRange| Name | Description | Type | Additional information |
|---|---|---|---|
| ShowLevel |
显示级别 0:所有,1=节点 |
integer |
Required |
| LonX |
地图左下角经度 |
decimal number |
Required |
| LatX |
地图左下角纬度 |
decimal number |
Required |
| LonY |
地图右上角经度 |
decimal number |
Required |
| LatY |
地图右上角纬度 |
decimal number |
Required |
| Time |
起始时间 第一次查询使用1970-1-1 00:00:00查所有,后续查询使用查询到的后一个数据的时间。 |
string |
Required |
| DBName |
客户库名 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"ShowLevel": 1,
"LonX": 2.1,
"LatX": 3.1,
"LonY": 4.1,
"LatY": 5.1,
"Time": "sample string 6",
"DBName": "sample string 7"
}
application/xml, text/xml
Sample:
<M_MapRange xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models"> <DBName>sample string 7</DBName> <LatX>3.1</LatX> <LatY>5.1</LatY> <LonX>2.1</LonX> <LonY>4.1</LonY> <ShowLevel>1</ShowLevel> <Time>sample string 6</Time> </M_MapRange>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
M_rpDevice_sm_Short| Name | Description | Type | Additional information |
|---|---|---|---|
| Contant |
内容,包含返回所需要的类 |
Collection of M_Device_sm_Short |
Required |
| Status |
状态 |
integer |
Required |
| Msg |
信息 |
string |
Required |
| Num |
数值,数据变动条数或增加时返回的ID |
integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"Contant": null,
"Status": 1,
"Msg": "sample string 2",
"Num": 3
}
application/xml, text/xml
Sample:
<M_rpDevice_sm_Short xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models"> <Msg>sample string 2</Msg> <Num>3</Num> <Status>1</Status> <Contant i:nil="true" /> </M_rpDevice_sm_Short>