POST api/Obd/TravelList

Custom time travel list [car]

Request Information

Body Parameters

TravelListModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Start

starting time

date

None.

End

ending time

date

None.

TimeOffset

cell phonetime zone difference

decimal number

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:45:39.798125+08:00",
  "End": "2018-12-19T05:45:39.798125+08:00",
  "TimeOffset": 4.1,
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<TravelListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <DeviceId>1</DeviceId>
  <End>2018-12-19T05:45:39.798125+08:00</End>
  <Start>2018-12-19T05:45:39.798125+08:00</Start>
  <TimeOffset>4.1</TimeOffset>
</TravelListModel>

Response Information

Resource Description

Statestatus code
0. Indicates success
100. list no data
1100. device does not exist
4000. Says failure

TravelListResult
NameDescriptionTypeAdditional information
TotalMileage

Total mileage during query time

integer

None.

TotalTime

Total duration of query time S

integer

None.

AvgSpeed

average velocity km/h

integer

None.

AvgFuel

average fuel consumption L/100km

decimal number

None.

Items

Schedule list

Collection of TravelInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalMileage": 1,
  "TotalTime": 2,
  "AvgSpeed": 3,
  "AvgFuel": 4.0,
  "Items": [
    {
      "TravelId": 1,
      "Status": 2,
      "StopTime": 3,
      "StartTime": "sample string 4",
      "StartAddress": "sample string 5",
      "EndTime": "sample string 6",
      "EndAddress": "sample string 7",
      "Mileage": 8.0,
      "Fuel": 9.0,
      "TravelTime": 10,
      "TravelAvgSpeed": 11.0,
      "TravelAvgFuel": 12.0,
      "OverSpeed": 13,
      "SlowDown": 14,
      "SpeedUp": 15,
      "Idling": 16,
      "TripID": "sample string 17",
      "Coolant_temp": 18.0,
      "FastAccelerate": 19,
      "SpeedingTime": 20,
      "SpeedingMileage": 21.0,
      "SpeedingOil": 22.0,
      "HighSpeedingTime": 23,
      "HighSpeedingMileage": 24.0,
      "HighSpeedingOil": 25.0,
      "MediumSpeedingTime": 26,
      "MediumSpeedingMileage": 27.0,
      "MediumSpeedingOil": 28.0,
      "LowSpeedingTime": 29,
      "LowSpeedingMileage": 30.0,
      "LowSpeedingOil": 31.0,
      "IdlingTime": 32,
      "IdlingOil": 33.0,
      "HeatingTime": 34,
      "FastLaneChanging": 35,
      "UrgentRefueling": 36
    },
    {
      "TravelId": 1,
      "Status": 2,
      "StopTime": 3,
      "StartTime": "sample string 4",
      "StartAddress": "sample string 5",
      "EndTime": "sample string 6",
      "EndAddress": "sample string 7",
      "Mileage": 8.0,
      "Fuel": 9.0,
      "TravelTime": 10,
      "TravelAvgSpeed": 11.0,
      "TravelAvgFuel": 12.0,
      "OverSpeed": 13,
      "SlowDown": 14,
      "SpeedUp": 15,
      "Idling": 16,
      "TripID": "sample string 17",
      "Coolant_temp": 18.0,
      "FastAccelerate": 19,
      "SpeedingTime": 20,
      "SpeedingMileage": 21.0,
      "SpeedingOil": 22.0,
      "HighSpeedingTime": 23,
      "HighSpeedingMileage": 24.0,
      "HighSpeedingOil": 25.0,
      "MediumSpeedingTime": 26,
      "MediumSpeedingMileage": 27.0,
      "MediumSpeedingOil": 28.0,
      "LowSpeedingTime": 29,
      "LowSpeedingMileage": 30.0,
      "LowSpeedingOil": 31.0,
      "IdlingTime": 32,
      "IdlingOil": 33.0,
      "HeatingTime": 34,
      "FastLaneChanging": 35,
      "UrgentRefueling": 36
    }
  ],
  "State": 5
}

application/xml, text/xml

Sample:
<TravelListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>5</State>
  <AvgFuel>4</AvgFuel>
  <AvgSpeed>3</AvgSpeed>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:TravelInfo>
      <d2p1:Coolant_temp>18</d2p1:Coolant_temp>
      <d2p1:EndAddress>sample string 7</d2p1:EndAddress>
      <d2p1:EndTime>sample string 6</d2p1:EndTime>
      <d2p1:FastAccelerate>19</d2p1:FastAccelerate>
      <d2p1:FastLaneChanging>35</d2p1:FastLaneChanging>
      <d2p1:Fuel>9</d2p1:Fuel>
      <d2p1:HeatingTime>34</d2p1:HeatingTime>
      <d2p1:HighSpeedingMileage>24</d2p1:HighSpeedingMileage>
      <d2p1:HighSpeedingOil>25</d2p1:HighSpeedingOil>
      <d2p1:HighSpeedingTime>23</d2p1:HighSpeedingTime>
      <d2p1:Idling>16</d2p1:Idling>
      <d2p1:IdlingOil>33</d2p1:IdlingOil>
      <d2p1:IdlingTime>32</d2p1:IdlingTime>
      <d2p1:LowSpeedingMileage>30</d2p1:LowSpeedingMileage>
      <d2p1:LowSpeedingOil>31</d2p1:LowSpeedingOil>
      <d2p1:LowSpeedingTime>29</d2p1:LowSpeedingTime>
      <d2p1:MediumSpeedingMileage>27</d2p1:MediumSpeedingMileage>
      <d2p1:MediumSpeedingOil>28</d2p1:MediumSpeedingOil>
      <d2p1:MediumSpeedingTime>26</d2p1:MediumSpeedingTime>
      <d2p1:Mileage>8</d2p1:Mileage>
      <d2p1:OverSpeed>13</d2p1:OverSpeed>
      <d2p1:SlowDown>14</d2p1:SlowDown>
      <d2p1:SpeedUp>15</d2p1:SpeedUp>
      <d2p1:SpeedingMileage>21</d2p1:SpeedingMileage>
      <d2p1:SpeedingOil>22</d2p1:SpeedingOil>
      <d2p1:SpeedingTime>20</d2p1:SpeedingTime>
      <d2p1:StartAddress>sample string 5</d2p1:StartAddress>
      <d2p1:StartTime>sample string 4</d2p1:StartTime>
      <d2p1:Status>2</d2p1:Status>
      <d2p1:StopTime>3</d2p1:StopTime>
      <d2p1:TravelAvgFuel>12</d2p1:TravelAvgFuel>
      <d2p1:TravelAvgSpeed>11</d2p1:TravelAvgSpeed>
      <d2p1:TravelId>1</d2p1:TravelId>
      <d2p1:TravelTime>10</d2p1:TravelTime>
      <d2p1:TripID>sample string 17</d2p1:TripID>
      <d2p1:UrgentRefueling>36</d2p1:UrgentRefueling>
    </d2p1:TravelInfo>
    <d2p1:TravelInfo>
      <d2p1:Coolant_temp>18</d2p1:Coolant_temp>
      <d2p1:EndAddress>sample string 7</d2p1:EndAddress>
      <d2p1:EndTime>sample string 6</d2p1:EndTime>
      <d2p1:FastAccelerate>19</d2p1:FastAccelerate>
      <d2p1:FastLaneChanging>35</d2p1:FastLaneChanging>
      <d2p1:Fuel>9</d2p1:Fuel>
      <d2p1:HeatingTime>34</d2p1:HeatingTime>
      <d2p1:HighSpeedingMileage>24</d2p1:HighSpeedingMileage>
      <d2p1:HighSpeedingOil>25</d2p1:HighSpeedingOil>
      <d2p1:HighSpeedingTime>23</d2p1:HighSpeedingTime>
      <d2p1:Idling>16</d2p1:Idling>
      <d2p1:IdlingOil>33</d2p1:IdlingOil>
      <d2p1:IdlingTime>32</d2p1:IdlingTime>
      <d2p1:LowSpeedingMileage>30</d2p1:LowSpeedingMileage>
      <d2p1:LowSpeedingOil>31</d2p1:LowSpeedingOil>
      <d2p1:LowSpeedingTime>29</d2p1:LowSpeedingTime>
      <d2p1:MediumSpeedingMileage>27</d2p1:MediumSpeedingMileage>
      <d2p1:MediumSpeedingOil>28</d2p1:MediumSpeedingOil>
      <d2p1:MediumSpeedingTime>26</d2p1:MediumSpeedingTime>
      <d2p1:Mileage>8</d2p1:Mileage>
      <d2p1:OverSpeed>13</d2p1:OverSpeed>
      <d2p1:SlowDown>14</d2p1:SlowDown>
      <d2p1:SpeedUp>15</d2p1:SpeedUp>
      <d2p1:SpeedingMileage>21</d2p1:SpeedingMileage>
      <d2p1:SpeedingOil>22</d2p1:SpeedingOil>
      <d2p1:SpeedingTime>20</d2p1:SpeedingTime>
      <d2p1:StartAddress>sample string 5</d2p1:StartAddress>
      <d2p1:StartTime>sample string 4</d2p1:StartTime>
      <d2p1:Status>2</d2p1:Status>
      <d2p1:StopTime>3</d2p1:StopTime>
      <d2p1:TravelAvgFuel>12</d2p1:TravelAvgFuel>
      <d2p1:TravelAvgSpeed>11</d2p1:TravelAvgSpeed>
      <d2p1:TravelId>1</d2p1:TravelId>
      <d2p1:TravelTime>10</d2p1:TravelTime>
      <d2p1:TripID>sample string 17</d2p1:TripID>
      <d2p1:UrgentRefueling>36</d2p1:UrgentRefueling>
    </d2p1:TravelInfo>
  </Items>
  <TotalMileage>1</TotalMileage>
  <TotalTime>2</TotalTime>
</TravelListResult>