POST api/Obd/TravelView

Schedule view [car]

Request Information

Body Parameters

TravelViewModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Start

starting time

date

None.

End

ending time

date

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-10-19T14:40:25.2414302+08:00",
  "End": "2018-10-19T14:40:25.2414302+08:00",
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

Sample:
<TravelViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 6</AppId>
  <Language>sample string 5</Language>
  <Token>sample string 4</Token>
  <DeviceId>1</DeviceId>
  <End>2018-10-19T14:40:25.2414302+08:00</End>
  <Start>2018-10-19T14:40:25.2414302+08:00</Start>
</TravelViewModel>

Response Information

Resource Description

status code
0. return success
1100. device does not exist
4000. return failure

TravelViewResult
NameDescriptionTypeAdditional information
Total

Schedule number

integer

None.

Mileage

Total mileage

decimal number

None.

TravelTime

Total trip time S

integer

None.

AvgSpeed

Average stroke speed

decimal number

None.

AvgFuel

Average travel fuel consumption

decimal number

None.

TotalFuel

Total trip fuel consumption

decimal number

None.

OverSpeed

Times of speeding

integer

None.

SpeedUp

Acceleration frequency

integer

None.

SlowDown

Deceleration frequency

integer

None.

Idling

times of stops is not extinguished

integer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Total": 1,
  "Mileage": 2.0,
  "TravelTime": 3,
  "AvgSpeed": 4.0,
  "AvgFuel": 5.0,
  "TotalFuel": 6.0,
  "OverSpeed": 7,
  "SpeedUp": 8,
  "SlowDown": 9,
  "Idling": 10,
  "State": 11
}

application/xml, text/xml

Sample:
<TravelViewResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>11</State>
  <AvgFuel>5</AvgFuel>
  <AvgSpeed>4</AvgSpeed>
  <Idling>10</Idling>
  <Mileage>2</Mileage>
  <OverSpeed>7</OverSpeed>
  <SlowDown>9</SlowDown>
  <SpeedUp>8</SpeedUp>
  <Total>1</Total>
  <TotalFuel>6</TotalFuel>
  <TravelTime>3</TravelTime>
</TravelViewResult>