POST api/Obd/TravelView

选定时间内行程视图 [车机]

Request Information

Body Parameters

TravelViewModel
NameDescriptionTypeAdditional information
DeviceId

设备 id

integer

None.

Start

开始时间

date

None.

End

结束时间

date

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Start": "2025-12-12T05:27:12.1909691+08:00",
  "End": "2025-12-12T05:27:12.1909691+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>2025-12-12T05:27:12.1909691+08:00</End>
  <Start>2025-12-12T05:27:12.1909691+08:00</Start>
</TravelViewModel>

Response Information

Resource Description

状态码
0. 返回成功
1100. 设备不存在
4000. 返回失败

TravelViewResult
NameDescriptionTypeAdditional information
Total

行程数

integer

None.

Mileage

行程总里程

decimal number

None.

TravelTime

行程总时间 秒

integer

None.

AvgSpeed

行程平均速度

decimal number

None.

AvgFuel

行程平均油耗

decimal number

None.

TotalFuel

行程总油耗

decimal number

None.

OverSpeed

超速次数

integer

None.

SpeedUp

急加速次数

integer

None.

SlowDown

急减速次数

integer

None.

Idling

停车未熄火次数

integer

None.

State

状态码

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>