POST api/Obd/ObdTravelList

Obd trip list [vehicle]

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-10-16T18:42:13.2584328+08:00",
  "End": "2018-10-16T18:42:13.2584328+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-10-16T18:42:13.2584328+08:00</End>
  <MapType>sample string 4</MapType>
  <Start>2018-10-16T18:42:13.2584328+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

ObdTravelListResult
NameDescriptionTypeAdditional information
Items

Collection of SingleObdTravel

None.

Distance

total distance

decimal number

None.

FuelLv

oil consumption

decimal number

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "TravelId": 1,
      "StartTime": "sample string 2",
      "EndTime": "sample string 3",
      "StartLat": 4.0,
      "StartLng": 5.0,
      "StartOLat": 6.0,
      "StartOLng": 7.0,
      "EndLat": 8.0,
      "EndLng": 9.0,
      "EndOLat": 10.0,
      "EndOLng": 11.0,
      "StartAddress": "sample string 12",
      "EndAddress": "sample string 13",
      "Distance": 14.0,
      "Score": 15
    },
    {
      "TravelId": 1,
      "StartTime": "sample string 2",
      "EndTime": "sample string 3",
      "StartLat": 4.0,
      "StartLng": 5.0,
      "StartOLat": 6.0,
      "StartOLng": 7.0,
      "EndLat": 8.0,
      "EndLng": 9.0,
      "EndOLat": 10.0,
      "EndOLng": 11.0,
      "StartAddress": "sample string 12",
      "EndAddress": "sample string 13",
      "Distance": 14.0,
      "Score": 15
    }
  ],
  "Distance": 1.0,
  "FuelLv": 2.0,
  "State": 3
}

application/xml, text/xml

Sample:
<ObdTravelListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>3</State>
  <Distance>1</Distance>
  <FuelLv>2</FuelLv>
  <Items>
    <SingleObdTravel>
      <Distance>14</Distance>
      <EndAddress>sample string 13</EndAddress>
      <EndLat>8</EndLat>
      <EndLng>9</EndLng>
      <EndOLat>10</EndOLat>
      <EndOLng>11</EndOLng>
      <EndTime>sample string 3</EndTime>
      <Score>15</Score>
      <StartAddress>sample string 12</StartAddress>
      <StartLat>4</StartLat>
      <StartLng>5</StartLng>
      <StartOLat>6</StartOLat>
      <StartOLng>7</StartOLng>
      <StartTime>sample string 2</StartTime>
      <TravelId>1</TravelId>
    </SingleObdTravel>
    <SingleObdTravel>
      <Distance>14</Distance>
      <EndAddress>sample string 13</EndAddress>
      <EndLat>8</EndLat>
      <EndLng>9</EndLng>
      <EndOLat>10</EndOLat>
      <EndOLng>11</EndOLng>
      <EndTime>sample string 3</EndTime>
      <Score>15</Score>
      <StartAddress>sample string 12</StartAddress>
      <StartLat>4</StartLat>
      <StartLng>5</StartLng>
      <StartOLat>6</StartOLat>
      <StartOLng>7</StartOLng>
      <StartTime>sample string 2</StartTime>
      <TravelId>1</TravelId>
    </SingleObdTravel>
  </Items>
</ObdTravelListResult>