POST api/track/get_track_info
API to get location history
Request Information
Body Parameters
GetTrackInfoModels| Name | Description | Type | Additional information |
|---|---|---|---|
| AccessToken |
Token |
string |
None. |
| Imei |
Imei |
string |
None. |
| BeginTime |
BeginTime(UTC) |
date |
None. |
| EndTime |
EndTime(UTC) |
date |
None. |
| MapType |
|
string |
None. |
| TimeZone |
TimeZone |
integer |
None. |
Response Information
Resource Description
Return location list
TrackInfoResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Result |
Result |
Collection of TrackInfoOutputDto |
None. |
| State |
Status Code 0:Success 1:Fail |
integer |
None. |
| Msg |
Error Message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": [
{
"GpsTime": "sample string 1",
"Lat": 2.1,
"Lng": 3.1,
"PosType": "sample string 4",
"Speed": 5.1,
"Direction": 6
},
{
"GpsTime": "sample string 1",
"Lat": 2.1,
"Lng": 3.1,
"PosType": "sample string 4",
"Speed": 5.1,
"Direction": 6
}
],
"State": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<TrackInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
<Msg>sample string 2</Msg>
<State>1</State>
<Result>
<TrackInfoOutputDto>
<Direction>6</Direction>
<GpsTime>sample string 1</GpsTime>
<Lat>2.1</Lat>
<Lng>3.1</Lng>
<PosType>sample string 4</PosType>
<Speed>5.1</Speed>
</TrackInfoOutputDto>
<TrackInfoOutputDto>
<Direction>6</Direction>
<GpsTime>sample string 1</GpsTime>
<Lat>2.1</Lat>
<Lng>3.1</Lng>
<PosType>sample string 4</PosType>
<Speed>5.1</Speed>
</TrackInfoOutputDto>
</Result>
</TrackInfoResult>