GET api/track/get_track_info

获取某个设备指定时间段内的历史轨迹信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AccessToken

Token

string

None.

Imei

单个imei

string

None.

BeginTime

开始时间(UTC)

date

None.

EndTime

结束时间(UTC)

date

None.

MapType

Baidu或者Google

string

None.

Response Information

Resource Description

返回设备的历史轨迹信息

TrackInfoResult
NameDescriptionTypeAdditional information
Result

结果

Collection of TrackInfoOutputDto

None.

Code

状态码

integer

None.

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
    }
  ],
  "Code": 1,
  "Message": "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/Gps.OpenApi.Models.ResponseModels">
  <Code>1</Code>
  <Message>sample string 2</Message>
  <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>