GET v1/selReportPathInRegion
Метод який обраховує звіт "Пробіг в регіоні".
Параметри запиту
Формат запиту (URI parameters)
| Назва | Опис | Tип | Додатково |
|---|---|---|---|
| deviceIDs |
Масив ID авто |
Collection of integer |
Обов'язковий |
| dateFrom |
Дата початку періоду розрахунків (у форматі ISO) |
string |
Обов'язковий |
| dateTo |
Дата закінчення періоду розрахунків (у форматі ISO) |
string |
Обов'язковий |
| isUseTimeInEachDay |
Ознака чи враховувати обмеження по часі в кожен день періоду |
boolean |
Не обов'язковий |
Тіло запиту (body parameters)
Відсутнє.
Параметри відповіді
Опис
| Назва | Опис | Tип | Додатково |
|---|---|---|---|
| id |
ID звіту |
integer | |
| deviceID |
ID авто |
integer | |
| orderNo |
Порядковий номер |
integer | |
| regionID |
ID регіону |
integer | |
| regionName |
Назва регіону |
string | |
| onDate |
Дата |
date | |
| timeFrom |
Час з |
time interval | |
| timeTo |
Час по |
time interval | |
| area |
Площа |
decimal number | |
| path |
Шлях в регіоні |
decimal number | |
| pathSummary |
Сумарний шлях |
decimal number | |
| isUseTimeInEachDay | boolean | ||
| reportIButton | ReportIButton | ||
| deviceEquipment | DeviceEquipment | ||
| downTimeFormatted |
Тривалість та кількість простоїв |
string | |
| downTimeDuration |
Тривалість простоїв |
time interval | |
| downTimeDurationMilliseconds |
Тривалість простоїв в мілісекундах |
decimal number | |
| downTimeCount |
Кількість простоїв |
integer | |
| fuelNorms |
Норми пального |
Collection of DeviceFuelNorm | |
| clientDriverFormatted |
Водій, час роботи |
string | |
| isFirstPointInRegion | boolean | ||
| isLastPointInRegion | boolean |
Формат відповіді
application/json
Приклад:
[
{
"id": 1,
"deviceID": 2,
"orderNo": 3,
"regionID": 4,
"regionName": "sample string 5",
"onDate": "2025-11-23T17:28:57.8135499+02:00",
"timeFrom": "17:28:57.8135499",
"timeTo": "17:28:57.8135499",
"area": 6.1,
"path": 7.1,
"pathSummary": 1.1,
"isUseTimeInEachDay": true,
"reportIButton": {
"OnDate": "2025-11-23T17:28:57.8135499+02:00",
"OrderNo": 2,
"X": 3.1,
"Y": 4.1,
"RegionIDs": [
1,
2
],
"Description": "sample string 5",
"Key": "sample string 6"
},
"deviceEquipment": {
"id": 1,
"clientID": 2,
"name": "sample string 3",
"width": 4.1,
"fuelNorms": [
{
"id": 1,
"deviceEquipmentID": 2,
"value": 3.1,
"speedFrom": 64,
"speedTo": 64
},
{
"id": 1,
"deviceEquipmentID": 2,
"value": 3.1,
"speedFrom": 64,
"speedTo": 64
}
],
"nameFormatted": " sample string 3 (4,1м; 64-64км/год 3,1л/год)"
},
"downTimeFormatted": " (2 p)",
"downTimeDuration": "00:00:00",
"downTimeDurationMilliseconds": 0.0,
"downTimeCount": 2,
"fuelNorms": [
{
"id": 1,
"deviceID": 2,
"type": 0,
"value": 3.1,
"speedFrom": 1,
"speedTo": 1,
"fuelSpendInCity": 1.1,
"fuelSpendOutSideCity": 1.1,
"fuelSpend": 4.1,
"fuelSpendInCityOn100": 1.1,
"fuelSpendOutSideCityOn100": 1.1,
"fuelSpendOn1Hour": 1.1
},
{
"id": 1,
"deviceID": 2,
"type": 0,
"value": 3.1,
"speedFrom": 1,
"speedTo": 1,
"fuelSpendInCity": 1.1,
"fuelSpendOutSideCity": 1.1,
"fuelSpend": 4.1,
"fuelSpendInCityOn100": 1.1,
"fuelSpendOutSideCityOn100": 1.1,
"fuelSpendOn1Hour": 1.1
}
],
"clientDriverFormatted": "sample string 5 (17:28)",
"isFirstPointInRegion": true,
"isLastPointInRegion": true
},
{
"id": 1,
"deviceID": 2,
"orderNo": 3,
"regionID": 4,
"regionName": "sample string 5",
"onDate": "2025-11-23T17:28:57.8135499+02:00",
"timeFrom": "17:28:57.8135499",
"timeTo": "17:28:57.8135499",
"area": 6.1,
"path": 7.1,
"pathSummary": 1.1,
"isUseTimeInEachDay": true,
"reportIButton": {
"OnDate": "2025-11-23T17:28:57.8135499+02:00",
"OrderNo": 2,
"X": 3.1,
"Y": 4.1,
"RegionIDs": [
1,
2
],
"Description": "sample string 5",
"Key": "sample string 6"
},
"deviceEquipment": {
"id": 1,
"clientID": 2,
"name": "sample string 3",
"width": 4.1,
"fuelNorms": [
{
"id": 1,
"deviceEquipmentID": 2,
"value": 3.1,
"speedFrom": 64,
"speedTo": 64
},
{
"id": 1,
"deviceEquipmentID": 2,
"value": 3.1,
"speedFrom": 64,
"speedTo": 64
}
],
"nameFormatted": " sample string 3 (4,1м; 64-64км/год 3,1л/год)"
},
"downTimeFormatted": " (2 p)",
"downTimeDuration": "00:00:00",
"downTimeDurationMilliseconds": 0.0,
"downTimeCount": 2,
"fuelNorms": [
{
"id": 1,
"deviceID": 2,
"type": 0,
"value": 3.1,
"speedFrom": 1,
"speedTo": 1,
"fuelSpendInCity": 1.1,
"fuelSpendOutSideCity": 1.1,
"fuelSpend": 4.1,
"fuelSpendInCityOn100": 1.1,
"fuelSpendOutSideCityOn100": 1.1,
"fuelSpendOn1Hour": 1.1
},
{
"id": 1,
"deviceID": 2,
"type": 0,
"value": 3.1,
"speedFrom": 1,
"speedTo": 1,
"fuelSpendInCity": 1.1,
"fuelSpendOutSideCity": 1.1,
"fuelSpend": 4.1,
"fuelSpendInCityOn100": 1.1,
"fuelSpendOutSideCityOn100": 1.1,
"fuelSpendOn1Hour": 1.1
}
],
"clientDriverFormatted": "sample string 5 (17:28)",
"isFirstPointInRegion": true,
"isLastPointInRegion": true
}
]