POST api/Obd/ObdTravelListTu

Obd Travel list [graph]

Request Information

Body Parameters

ObdTravelListModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Start

One day starting time UTC

date

None.

End

One day ending time UTC

date

None.

MapType

map style

string

None.

TimeOffset

cell phonetime zone difference

decimal number

None.

UserId

user id

integer

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:
{
  "DeviceId": 1,
  "Start": "2018-12-19T05:25:27.1614063+08:00",
  "End": "2018-12-19T05:25:27.1614063+08:00",
  "MapType": "sample string 4",
  "TimeOffset": 5.1,
  "UserId": 6,
  "Token": "sample string 7",
  "Language": "sample string 8",
  "AppId": "sample string 9"
}

application/xml, text/xml

Sample:
<ObdTravelListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 9</AppId>
  <Language>sample string 8</Language>
  <Token>sample string 7</Token>
  <DeviceId>1</DeviceId>
  <End>2018-12-19T05:25:27.1614063+08:00</End>
  <MapType>sample string 4</MapType>
  <Start>2018-12-19T05:25:27.1614063+08:00</Start>
  <TimeOffset>5.1</TimeOffset>
  <UserId>6</UserId>
</ObdTravelListModel>

Response Information

Resource Description

Statestatus code
0. Indicates success
1100. indicates device does not exist
4000. Says failure

ObdTravelListTuResult
NameDescriptionTypeAdditional information
Items

collection

Collection of ObdTravelListTuA

None.

TravelInfo

SingleTravelInfo

None.

ExceptionMessageItems

ExceptionMessageCount

None.

Distance

total distance

decimal number

None.

FuelLv

the consumption of total gasoline

decimal number

None.

DTime

Total time

string

None.

AvgSpeed

average velocity

decimal number

None.

AvgFuelLv

The average fuel consumption

decimal number

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "BeginTime": "sample string 1",
      "EndTime": "sample string 2",
      "Distance": 3.0,
      "FuelLv": 4.0
    },
    {
      "BeginTime": "sample string 1",
      "EndTime": "sample string 2",
      "Distance": 3.0,
      "FuelLv": 4.0
    }
  ],
  "TravelInfo": {
    "TotalDistance": 1.0,
    "TotalTime": 2.0,
    "LowDistance": 3.0,
    "LowTime": 4.0,
    "LowSpeedingOil": 5.0,
    "HighDistance": 6.0,
    "HighTime": 7.0,
    "HighSpeedingOil": 8.0,
    "MiddleDistance": 9.0,
    "MiddleTime": 10.0,
    "MediumSpeedingOil": 11.0,
    "SpeedingDistance": 12.0,
    "SpeedingTime": 13.0,
    "SpeedingOil": 14.0,
    "IdlingDistance": 15.0,
    "IdlingTime": 16.0,
    "IdlingOil": 17.0
  },
  "ExceptionMessageItems": {
    "shock": 1,
    "PullOut": 2,
    "trailer": 3,
    "FatigueDriving": 4,
    "Battery": 5,
    "GPS": 6,
    "Coolant": 7,
    "Rapid": 8,
    "Come": 9,
    "RapidLaneChange": 10,
    "SharpTurn": 11,
    "SlamTheBrakesOn": 12,
    "Speeding": 13,
    "idling": 14
  },
  "Distance": 1.0,
  "FuelLv": 2.0,
  "DTime": "sample string 3",
  "AvgSpeed": 4.0,
  "AvgFuelLv": 5.0,
  "State": 6
}

application/xml, text/xml

Sample:
<ObdTravelListTuResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>6</State>
  <AvgFuelLv>5</AvgFuelLv>
  <AvgSpeed>4</AvgSpeed>
  <DTime>sample string 3</DTime>
  <Distance>1</Distance>
  <ExceptionMessageItems>
    <Battery>5</Battery>
    <Come>9</Come>
    <Coolant>7</Coolant>
    <FatigueDriving>4</FatigueDriving>
    <GPS>6</GPS>
    <PullOut>2</PullOut>
    <Rapid>8</Rapid>
    <RapidLaneChange>10</RapidLaneChange>
    <SharpTurn>11</SharpTurn>
    <SlamTheBrakesOn>12</SlamTheBrakesOn>
    <Speeding>13</Speeding>
    <idling>14</idling>
    <shock>1</shock>
    <trailer>3</trailer>
  </ExceptionMessageItems>
  <FuelLv>2</FuelLv>
  <Items>
    <ObdTravelListTuA>
      <BeginTime>sample string 1</BeginTime>
      <Distance>3</Distance>
      <EndTime>sample string 2</EndTime>
      <FuelLv>4</FuelLv>
    </ObdTravelListTuA>
    <ObdTravelListTuA>
      <BeginTime>sample string 1</BeginTime>
      <Distance>3</Distance>
      <EndTime>sample string 2</EndTime>
      <FuelLv>4</FuelLv>
    </ObdTravelListTuA>
  </Items>
  <TravelInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:HighDistance>6</d2p1:HighDistance>
    <d2p1:HighSpeedingOil>8</d2p1:HighSpeedingOil>
    <d2p1:HighTime>7</d2p1:HighTime>
    <d2p1:IdlingDistance>15</d2p1:IdlingDistance>
    <d2p1:IdlingOil>17</d2p1:IdlingOil>
    <d2p1:IdlingTime>16</d2p1:IdlingTime>
    <d2p1:LowDistance>3</d2p1:LowDistance>
    <d2p1:LowSpeedingOil>5</d2p1:LowSpeedingOil>
    <d2p1:LowTime>4</d2p1:LowTime>
    <d2p1:MediumSpeedingOil>11</d2p1:MediumSpeedingOil>
    <d2p1:MiddleDistance>9</d2p1:MiddleDistance>
    <d2p1:MiddleTime>10</d2p1:MiddleTime>
    <d2p1:SpeedingDistance>12</d2p1:SpeedingDistance>
    <d2p1:SpeedingOil>14</d2p1:SpeedingOil>
    <d2p1:SpeedingTime>13</d2p1:SpeedingTime>
    <d2p1:TotalDistance>1</d2p1:TotalDistance>
    <d2p1:TotalTime>2</d2p1:TotalTime>
  </TravelInfo>
</ObdTravelListTuResult>