Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:d-sdk:7_reports:3_exec_report_group [2018/04/26 20:23]
support@geliossoft.ru created
en:d-sdk:7_reports:3_exec_report_group [2021/07/07 13:28]
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
  
-====== Execute Group Report ====== 
-The request is intended to execute report for group of units. 
- 
-=== Request Example === 
-<code php>&​svc=exec_report_group&​params={ 
-    "​id_group":​ integer, 
-    "​report_type":​ string, 
-    "​from":​ timestamp, 
-    "​to":​ timestamp, 
-    "​language":​ string, 
-    "​id_geozone":​ integer, 
-    "​id_route":​ integer 
-}</​code>​ 
- 
-=== Parameters === 
-^ Parameter ​  ^ Description ​  ^ 
-| id_group | Unique Group ID | 
-| report_type | Report Type | 
-| from | Start time of report | 
-| to | End time of report | 
-| language | Language | 
-| id_geozone | Unique Geozone ID | 
-| id_route | Unique Route ID | 
- 
-=== Additional Information === 
-Report_type('​unit_source'​ ⇒'​Initial data', '​unit_movement'​ ⇒ '​Report on trips',​ '​unit_stay'​ ⇒ '​Parking report',​ '​unit_movement_stay'​ ⇒ '​Report on trips and parkings',​ '​unit_conn'​ ⇒ 'Lost Connection Report'​). 
- 
-Parameters id_route and id_geozone are optional. 
- 
-=== Server Response === 
-== Result: == 
-<code php>{ 
-    "​page":​0,​ // Current page 
-    "​total":​7,​ 
-    "​records":​102,​ // Number of records 
-    "​headers":​[ // Report headers 
- "​Объект",​ 
- "​Начало",​ 
- "​Начальное положение",​ 
- "​Конец",​ 
- "​Конечное положение",​ 
- "​Длительность",​ 
- "​Средн. скорость км\ч",​ 
- "​Макс. скорость км\ч":"​0",​ 
- "​Расстояние,​ км", 
- "​Coord"​ 
-    ], 
-    "​rows":​[{ // Report rows 
-        "​Объект":"​Astra",​ 
- "​Начало":"​Итого",​ 
- "​Начальное положение":"",​ 
- "​Конец":"",​ 
- "​Конечное положение":"",​ 
- "​Длительность":"​0:​00:​00",​ 
- "​Средн. скорость км\ч":"​0.0",​ 
- "​Макс. скорость км\ч":"​0",​ 
- "​Расстояние,​ км":​\"​0.0"​ 
-    }, 
-    ... 
-    ] 
-}</​code>​