GET v1/getDeviceTreckPoints?DeviceID={DeviceID}&DateFrom={DateFrom}&DateTo={DateTo}&IsNeedFuelInOut={IsNeedFuelInOut}&IsNeedDownTime={IsNeedDownTime}&IsNeedSpeedOverflow={IsNeedSpeedOverflow}&IsNeedRegionVisit={IsNeedRegionVisit}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
deviceID

ID пристрою

integer

Required

dateFrom

Дата періоду 'з' у форматі ISO

date

Required

dateTo

Дата періоду 'по' у форматі ISO

date

Required

isNeedFuelInOut

Ознака чи потрібно обраховувати заправки/зливи

boolean

None.

isNeedDownTime

Ознака чи потрібно обраховувати простої

boolean

None.

isNeedSpeedOverflow

Ознака чи потрібно обраховувати перевищення швидкості

boolean

None.

isNeedRegionVisit

boolean

None.

Body Parameters

None.

Response Information

Resource Description

TreckPoints
NameDescriptionTypeAdditional information
deviceID

ID авто

integer

None.

devicePoints

Дані GPS пристрою

Collection of DevicePoint

None.

fuelInOutPoints

Заправки/зливи

Collection of ReportFuelInOut

None.

downTimePoints

Простої

Collection of ReportDownTime

None.

speedOverflowPoints

Точки перевищення швидкості

Collection of DevicePoint

None.

regionVisitedPoints

Точки відвіданих регіонів

Collection of DevicePoint

None.

distance

Пройдений шлях

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "deviceID": 1,
  "devicePoints": [
    {
      "id": 1,
      "deviceID": 2,
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "lng": 4.1,
      "lat": 5.1,
      "speed": 6,
      "satellites": 7,
      "distance": 8.1,
      "regionID": 14,
      "regionName": "sample string 15",
      "IsIgnition": true
    },
    {
      "id": 1,
      "deviceID": 2,
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "lng": 4.1,
      "lat": 5.1,
      "speed": 6,
      "satellites": 7,
      "distance": 8.1,
      "regionID": 14,
      "regionName": "sample string 15",
      "IsIgnition": true
    }
  ],
  "fuelInOutPoints": [
    {
      "log": [
        "sample string 1",
        "sample string 2"
      ],
      "id": 1,
      "orderNo": 2,
      "deviceID": 3,
      "deviceName": "sample string 4",
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "fuelAdjust": {
        "id": 1,
        "onDate": "2026-06-10T07:12:15.7647639+03:00",
        "value": 3,
        "sensorValue": 4,
        "deviceID": 5,
        "isChangeByOperator": true,
        "checkNo": "sample string 7",
        "type": 0,
        "isFlowingSensor": true
      },
      "fuelOnStart": 6.1,
      "fuelOnEnd": 7.1,
      "isApprovedFuelSpend": true,
      "isOutsideCalibration": true,
      "x": 10.1,
      "y": 11.1,
      "cityName": "sample string 12",
      "address": "sample string 13",
      "fuelIn": 1,
      "fuelOut": null,
      "fuelInFormatted": "1",
      "fuelOutFormatted": "",
      "regionsFormatted": "sample string 2, sample string 2",
      "regionIDs": [
        {
          "Key": 1,
          "Value": "sample string 2"
        },
        {
          "Key": 1,
          "Value": "sample string 2"
        }
      ],
      "isCache": true
    },
    {
      "log": [
        "sample string 1",
        "sample string 2"
      ],
      "id": 1,
      "orderNo": 2,
      "deviceID": 3,
      "deviceName": "sample string 4",
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "fuelAdjust": {
        "id": 1,
        "onDate": "2026-06-10T07:12:15.7647639+03:00",
        "value": 3,
        "sensorValue": 4,
        "deviceID": 5,
        "isChangeByOperator": true,
        "checkNo": "sample string 7",
        "type": 0,
        "isFlowingSensor": true
      },
      "fuelOnStart": 6.1,
      "fuelOnEnd": 7.1,
      "isApprovedFuelSpend": true,
      "isOutsideCalibration": true,
      "x": 10.1,
      "y": 11.1,
      "cityName": "sample string 12",
      "address": "sample string 13",
      "fuelIn": 1,
      "fuelOut": null,
      "fuelInFormatted": "1",
      "fuelOutFormatted": "",
      "regionsFormatted": "sample string 2, sample string 2",
      "regionIDs": [
        {
          "Key": 1,
          "Value": "sample string 2"
        },
        {
          "Key": 1,
          "Value": "sample string 2"
        }
      ],
      "isCache": true
    }
  ],
  "downTimePoints": [
    {
      "id": 1,
      "orderNo": 2,
      "deviceID": 3,
      "deviceName": "sample string 4",
      "x": 5.1,
      "y": 6.1,
      "dateFrom": "2026-06-10T07:12:15.7647639+03:00",
      "dateTo": "2026-06-10T07:12:15.7647639+03:00",
      "onDate": "2026-06-10T00:00:00+03:00",
      "cityName": "sample string 9",
      "address": "sample string 10",
      "regionIDs": [
        {
          "Key": 1,
          "Value": "sample string 2"
        },
        {
          "Key": 1,
          "Value": "sample string 2"
        }
      ],
      "actions": [
        {
          "type": 1,
          "onTime": "00:00:00.1234567",
          "description": "sample string 2",
          "name": "Заправка"
        },
        {
          "type": 1,
          "onTime": "00:00:00.1234567",
          "description": "sample string 2",
          "name": "Заправка"
        }
      ],
      "regionsFormatted": "sample string 2, sample string 2",
      "actionsFormatted": "Заправка,Заправка",
      "actionsTime": 123.45670000000001,
      "isCache": true
    },
    {
      "id": 1,
      "orderNo": 2,
      "deviceID": 3,
      "deviceName": "sample string 4",
      "x": 5.1,
      "y": 6.1,
      "dateFrom": "2026-06-10T07:12:15.7647639+03:00",
      "dateTo": "2026-06-10T07:12:15.7647639+03:00",
      "onDate": "2026-06-10T00:00:00+03:00",
      "cityName": "sample string 9",
      "address": "sample string 10",
      "regionIDs": [
        {
          "Key": 1,
          "Value": "sample string 2"
        },
        {
          "Key": 1,
          "Value": "sample string 2"
        }
      ],
      "actions": [
        {
          "type": 1,
          "onTime": "00:00:00.1234567",
          "description": "sample string 2",
          "name": "Заправка"
        },
        {
          "type": 1,
          "onTime": "00:00:00.1234567",
          "description": "sample string 2",
          "name": "Заправка"
        }
      ],
      "regionsFormatted": "sample string 2, sample string 2",
      "actionsFormatted": "Заправка,Заправка",
      "actionsTime": 123.45670000000001,
      "isCache": true
    }
  ],
  "speedOverflowPoints": [
    {
      "id": 1,
      "deviceID": 2,
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "lng": 4.1,
      "lat": 5.1,
      "speed": 6,
      "satellites": 7,
      "distance": 8.1,
      "regionID": 14,
      "regionName": "sample string 15",
      "IsIgnition": true
    },
    {
      "id": 1,
      "deviceID": 2,
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "lng": 4.1,
      "lat": 5.1,
      "speed": 6,
      "satellites": 7,
      "distance": 8.1,
      "regionID": 14,
      "regionName": "sample string 15",
      "IsIgnition": true
    }
  ],
  "regionVisitedPoints": [
    {
      "id": 1,
      "deviceID": 2,
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "lng": 4.1,
      "lat": 5.1,
      "speed": 6,
      "satellites": 7,
      "distance": 8.1,
      "regionID": 14,
      "regionName": "sample string 15",
      "IsIgnition": true
    },
    {
      "id": 1,
      "deviceID": 2,
      "onDate": "2026-06-10T07:12:15.7647639+03:00",
      "lng": 4.1,
      "lat": 5.1,
      "speed": 6,
      "satellites": 7,
      "distance": 8.1,
      "regionID": 14,
      "regionName": "sample string 15",
      "IsIgnition": true
    }
  ],
  "distance": 2.1
}