POST api/Device/DeviceListForMap

List of devices used on the map, returning only a few fields [car]

Request Information

Body Parameters

DeviceListForMapModel
NameDescriptionTypeAdditional information
UserId

User Id

integer

None.

MapType

Map style

string

None.

Keyword

Search for keywords

string

None.

LoginType

security user

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "MapType": "sample string 2",
  "Keyword": "sample string 3",
  "LoginType": "sample string 4",
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<DeviceListForMapModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <Keyword>sample string 3</Keyword>
  <LoginType>sample string 4</LoginType>
  <MapType>sample string 2</MapType>
  <UserId>1</UserId>
</DeviceListForMapModel>

Response Information

Resource Description

Statestatus codeillustrate
0. success

DeviceListForMapResult
NameDescriptionTypeAdditional information
DeviceList

device list

Collection of DeviceListForMapInfo

None.

MessageCount

integer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DeviceList": [
    {
      "DeviceUtcTime": "sample string 1",
      "LastCommunication": "sample string 2",
      "Speed": 3.0,
      "IsStop": 4,
      "IsOffSet": true,
      "DataType": 6,
      "PhoneNum": "sample string 7",
      "OLat": 8.0,
      "OLng": 9.0,
      "Id": 10,
      "SerialNumber": "sample string 11",
      "Name": "sample string 12",
      "GroupId": 13,
      "CarNo": "sample string 14",
      "Status": 15,
      "AvatarImage": "sample string 16",
      "Icon": "sample string 17",
      "Latitude": 18.0,
      "Longitude": 19.0,
      "Acc": 20,
      "Course": 21.0,
      "IsShowAcc": 22,
      "Type": "sample string 23",
      "TypeValue": 24,
      "IsCarDevice": 25,
      "Logo": "sample string 26",
      "Sim": "sample string 27",
      "Model": 28,
      "Battery": 29,
      "ServerUtcDate": "2018-12-19T13:25:55.0442188+08:00",
      "DeviceUtcDate": "2018-12-19T13:25:55.0442188+08:00",
      "Distance": 32.0,
      "IccId": "sample string 33",
      "SOSPhone1": "sample string 34",
      "SOSPhone2": "sample string 35",
      "CarColor": "sample string 36",
      "CarType": "sample string 37"
    },
    {
      "DeviceUtcTime": "sample string 1",
      "LastCommunication": "sample string 2",
      "Speed": 3.0,
      "IsStop": 4,
      "IsOffSet": true,
      "DataType": 6,
      "PhoneNum": "sample string 7",
      "OLat": 8.0,
      "OLng": 9.0,
      "Id": 10,
      "SerialNumber": "sample string 11",
      "Name": "sample string 12",
      "GroupId": 13,
      "CarNo": "sample string 14",
      "Status": 15,
      "AvatarImage": "sample string 16",
      "Icon": "sample string 17",
      "Latitude": 18.0,
      "Longitude": 19.0,
      "Acc": 20,
      "Course": 21.0,
      "IsShowAcc": 22,
      "Type": "sample string 23",
      "TypeValue": 24,
      "IsCarDevice": 25,
      "Logo": "sample string 26",
      "Sim": "sample string 27",
      "Model": 28,
      "Battery": 29,
      "ServerUtcDate": "2018-12-19T13:25:55.0442188+08:00",
      "DeviceUtcDate": "2018-12-19T13:25:55.0442188+08:00",
      "Distance": 32.0,
      "IccId": "sample string 33",
      "SOSPhone1": "sample string 34",
      "SOSPhone2": "sample string 35",
      "CarColor": "sample string 36",
      "CarType": "sample string 37"
    }
  ],
  "MessageCount": 1,
  "State": 2
}

application/xml, text/xml

Sample:
<DeviceListForMapResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <DeviceList xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:DeviceListForMapInfo>
      <d2p1:Acc>20</d2p1:Acc>
      <d2p1:AvatarImage>sample string 16</d2p1:AvatarImage>
      <d2p1:Battery>29</d2p1:Battery>
      <d2p1:CarColor>sample string 36</d2p1:CarColor>
      <d2p1:CarNo>sample string 14</d2p1:CarNo>
      <d2p1:CarType>sample string 37</d2p1:CarType>
      <d2p1:Course>21</d2p1:Course>
      <d2p1:DeviceUtcDate>2018-12-19T13:25:55.0442188+08:00</d2p1:DeviceUtcDate>
      <d2p1:Distance>32</d2p1:Distance>
      <d2p1:GroupId>13</d2p1:GroupId>
      <d2p1:IccId>sample string 33</d2p1:IccId>
      <d2p1:Icon>sample string 17</d2p1:Icon>
      <d2p1:Id>10</d2p1:Id>
      <d2p1:IsCarDevice>25</d2p1:IsCarDevice>
      <d2p1:IsShowAcc>22</d2p1:IsShowAcc>
      <d2p1:Latitude>18</d2p1:Latitude>
      <d2p1:Logo>sample string 26</d2p1:Logo>
      <d2p1:Longitude>19</d2p1:Longitude>
      <d2p1:Model>28</d2p1:Model>
      <d2p1:Name>sample string 12</d2p1:Name>
      <d2p1:OLat>0</d2p1:OLat>
      <d2p1:OLng>0</d2p1:OLng>
      <d2p1:SOSPhone1>sample string 34</d2p1:SOSPhone1>
      <d2p1:SOSPhone2>sample string 35</d2p1:SOSPhone2>
      <d2p1:SerialNumber>sample string 11</d2p1:SerialNumber>
      <d2p1:ServerUtcDate>2018-12-19T13:25:55.0442188+08:00</d2p1:ServerUtcDate>
      <d2p1:Sim>sample string 27</d2p1:Sim>
      <d2p1:Speed>0</d2p1:Speed>
      <d2p1:Status>15</d2p1:Status>
      <d2p1:Type>sample string 23</d2p1:Type>
      <d2p1:TypeValue>24</d2p1:TypeValue>
      <d2p1:DataType>6</d2p1:DataType>
      <d2p1:DeviceUtcTime>sample string 1</d2p1:DeviceUtcTime>
      <d2p1:IsOffSet>true</d2p1:IsOffSet>
      <d2p1:IsStop>4</d2p1:IsStop>
      <d2p1:LastCommunication>sample string 2</d2p1:LastCommunication>
      <d2p1:OLat>8</d2p1:OLat>
      <d2p1:OLng>9</d2p1:OLng>
      <d2p1:PhoneNum>sample string 7</d2p1:PhoneNum>
      <d2p1:Speed>3</d2p1:Speed>
    </d2p1:DeviceListForMapInfo>
    <d2p1:DeviceListForMapInfo>
      <d2p1:Acc>20</d2p1:Acc>
      <d2p1:AvatarImage>sample string 16</d2p1:AvatarImage>
      <d2p1:Battery>29</d2p1:Battery>
      <d2p1:CarColor>sample string 36</d2p1:CarColor>
      <d2p1:CarNo>sample string 14</d2p1:CarNo>
      <d2p1:CarType>sample string 37</d2p1:CarType>
      <d2p1:Course>21</d2p1:Course>
      <d2p1:DeviceUtcDate>2018-12-19T13:25:55.0442188+08:00</d2p1:DeviceUtcDate>
      <d2p1:Distance>32</d2p1:Distance>
      <d2p1:GroupId>13</d2p1:GroupId>
      <d2p1:IccId>sample string 33</d2p1:IccId>
      <d2p1:Icon>sample string 17</d2p1:Icon>
      <d2p1:Id>10</d2p1:Id>
      <d2p1:IsCarDevice>25</d2p1:IsCarDevice>
      <d2p1:IsShowAcc>22</d2p1:IsShowAcc>
      <d2p1:Latitude>18</d2p1:Latitude>
      <d2p1:Logo>sample string 26</d2p1:Logo>
      <d2p1:Longitude>19</d2p1:Longitude>
      <d2p1:Model>28</d2p1:Model>
      <d2p1:Name>sample string 12</d2p1:Name>
      <d2p1:OLat>0</d2p1:OLat>
      <d2p1:OLng>0</d2p1:OLng>
      <d2p1:SOSPhone1>sample string 34</d2p1:SOSPhone1>
      <d2p1:SOSPhone2>sample string 35</d2p1:SOSPhone2>
      <d2p1:SerialNumber>sample string 11</d2p1:SerialNumber>
      <d2p1:ServerUtcDate>2018-12-19T13:25:55.0442188+08:00</d2p1:ServerUtcDate>
      <d2p1:Sim>sample string 27</d2p1:Sim>
      <d2p1:Speed>0</d2p1:Speed>
      <d2p1:Status>15</d2p1:Status>
      <d2p1:Type>sample string 23</d2p1:Type>
      <d2p1:TypeValue>24</d2p1:TypeValue>
      <d2p1:DataType>6</d2p1:DataType>
      <d2p1:DeviceUtcTime>sample string 1</d2p1:DeviceUtcTime>
      <d2p1:IsOffSet>true</d2p1:IsOffSet>
      <d2p1:IsStop>4</d2p1:IsStop>
      <d2p1:LastCommunication>sample string 2</d2p1:LastCommunication>
      <d2p1:OLat>8</d2p1:OLat>
      <d2p1:OLng>9</d2p1:OLng>
      <d2p1:PhoneNum>sample string 7</d2p1:PhoneNum>
      <d2p1:Speed>3</d2p1:Speed>
    </d2p1:DeviceListForMapInfo>
  </DeviceList>
  <MessageCount>1</MessageCount>
</DeviceListForMapResult>