Home / API / ASP.NET Web API Details

GET api/v1/GPS/GetDriverBehavior?companyid={companyid}&fromdate={fromdate}&todate={todate}&vehicle={vehicle}&branchid={branchid}

Description

Get driver behaviour by date range

Request Information

Parameters

NameDescriptionAdditional information
companyid

Define this parameter in the request URI.

fromdate

Define this parameter in the request URI.

todate

Define this parameter in the request URI.

vehicle
by default -999=> all vehicles

Define this parameter in the request URI.

branchid
by default -999=> all branches

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "mobileid": 1,
    "vehiclename": "sample string 1",
    "DeviceName": "sample string 2",
    "Driver": "sample string 3",
    "Brake": 4,
    "Acceleration": 5,
    "Turn": 6,
    "Idle": 7,
    "Seatbelt": 8,
    "Total": 9,
    "vehicleid": 10,
    "employeeid": 11
  },
  {
    "mobileid": 1,
    "vehiclename": "sample string 1",
    "DeviceName": "sample string 2",
    "Driver": "sample string 3",
    "Brake": 4,
    "Acceleration": 5,
    "Turn": 6,
    "Idle": 7,
    "Seatbelt": 8,
    "Total": 9,
    "vehicleid": 10,
    "employeeid": 11
  }
]

application/xml, text/xml

Sample:
<ArrayOfpapidriverbehavior_Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIDATAv1">
  <papidriverbehavior_Result>
    <Acceleration>5</Acceleration>
    <Brake>4</Brake>
    <DeviceName>sample string 2</DeviceName>
    <Driver>sample string 3</Driver>
    <Idle>7</Idle>
    <Seatbelt>8</Seatbelt>
    <Total>9</Total>
    <Turn>6</Turn>
    <employeeid>11</employeeid>
    <mobileid>1</mobileid>
    <vehicleid>10</vehicleid>
    <vehiclename>sample string 1</vehiclename>
  </papidriverbehavior_Result>
  <papidriverbehavior_Result>
    <Acceleration>5</Acceleration>
    <Brake>4</Brake>
    <DeviceName>sample string 2</DeviceName>
    <Driver>sample string 3</Driver>
    <Idle>7</Idle>
    <Seatbelt>8</Seatbelt>
    <Total>9</Total>
    <Turn>6</Turn>
    <employeeid>11</employeeid>
    <mobileid>1</mobileid>
    <vehicleid>10</vehicleid>
    <vehiclename>sample string 1</vehiclename>
  </papidriverbehavior_Result>
</ArrayOfpapidriverbehavior_Result>