Home / API / ASP.NET Web API Details

GET api/v1/GPS/GetAlarms?companyid={companyid}&fromdate={fromdate}&todate={todate}

Description

Get Alarms (SpeedLimit, SeatBelt, LeavingGeofence,HardBreaking, HardAcceleration,SharpTurn,IdleTime)

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.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "DeviceId": 1,
    "vehicleid": 1,
    "vehiclename": "sample string 2",
    "employeid": 1,
    "driver": "sample string 3",
    "TimeStamp": "2025-02-23T06:16:09.8781438+00:00",
    "SpeedLimit": 1,
    "SeatBelt": 1,
    "LeavingGeofence": 1,
    "HardBreaking": 1,
    "HardAcceleration": 1,
    "SharpTurn": 1,
    "IdleTime": 1,
    "MileTotal": 4
  },
  {
    "DeviceId": 1,
    "vehicleid": 1,
    "vehiclename": "sample string 2",
    "employeid": 1,
    "driver": "sample string 3",
    "TimeStamp": "2025-02-23T06:16:09.8781438+00:00",
    "SpeedLimit": 1,
    "SeatBelt": 1,
    "LeavingGeofence": 1,
    "HardBreaking": 1,
    "HardAcceleration": 1,
    "SharpTurn": 1,
    "IdleTime": 1,
    "MileTotal": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfpapigetalarms_Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIDATAv1">
  <papigetalarms_Result>
    <DeviceId>1</DeviceId>
    <HardAcceleration>1</HardAcceleration>
    <HardBreaking>1</HardBreaking>
    <IdleTime>1</IdleTime>
    <LeavingGeofence>1</LeavingGeofence>
    <MileTotal>4</MileTotal>
    <SeatBelt>1</SeatBelt>
    <SharpTurn>1</SharpTurn>
    <SpeedLimit>1</SpeedLimit>
    <TimeStamp>2025-02-23T06:16:09.8781438+00:00</TimeStamp>
    <driver>sample string 3</driver>
    <employeid>1</employeid>
    <vehicleid>1</vehicleid>
    <vehiclename>sample string 2</vehiclename>
  </papigetalarms_Result>
  <papigetalarms_Result>
    <DeviceId>1</DeviceId>
    <HardAcceleration>1</HardAcceleration>
    <HardBreaking>1</HardBreaking>
    <IdleTime>1</IdleTime>
    <LeavingGeofence>1</LeavingGeofence>
    <MileTotal>4</MileTotal>
    <SeatBelt>1</SeatBelt>
    <SharpTurn>1</SharpTurn>
    <SpeedLimit>1</SpeedLimit>
    <TimeStamp>2025-02-23T06:16:09.8781438+00:00</TimeStamp>
    <driver>sample string 3</driver>
    <employeid>1</employeid>
    <vehicleid>1</vehicleid>
    <vehiclename>sample string 2</vehiclename>
  </papigetalarms_Result>
</ArrayOfpapigetalarms_Result>