Шаблон запиту:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = reports / get_all_obj_summary_by_interval & params = {"begin_dt": "<begin_dt>", "end_dt": "<end_dt>", "lang": " <lang> "}
Параметри запиту:
sid
унікальний ідентифікатор сеансу
begin_dt
end_dt
Шаблон відповіді на запит:
{"count": <count>, "all_obj_summary": <all_obj_summary>}
Параметри відповіді на запит:
all_obj_summary
масив рядків
Опис полів відповіді на запит:
obj_id
obj_name
пробіг
mileage_by_trip
Пробіг (в поїздках), км
avg_speed_in_kph
max_speed_in_kph
total_time_in_trips_str
total_time_in_parkings_str
motohours_str
dart_spent
dut_spent
витрачено_за_нормою
витрачено_за_нормою_по_поїздці
витратив_за_розрахунком
dart_avg
dut_avg
dut_begin_level
dut_end_level
refuel_cnt
defuel_cnt
згажений
last_message_dt
останнє_повідомлення_координати_вул
датчики_останнього_повідомлення
last_message_move_state_tooltip
motohour_counter_val
mileage_counter_val
Приклад запиту:
http:// gps.agtrack.kz /ts/json_api;jsessionid=0ABDEF9131EBF68D1418589584CA984D?cmd=reports/get_all_obj_summary_by_interval¶ms={"begin_dt":"27.08.2009, 02:021",02:021"02:021" ,"lang":"en"}
Приклад відповіді на запит:
{"count": 8, "all_obj_summary": [{"refueled": 0, "dut_begin_level": 0, "total_time_in_trips": 0, "last_message_sensors": "", "obj_name": "ADMINTELECOM", "mileage:_by_trip" 0, "max_speed_in_kph": 0, "total_time_in_parkings_str": "0sec.", "Dut_end_level": 0, "spent_by_norm_by_trip": 0, "refuel_cnt": 0, "total_time_in_trips_str": "gr. " , "total_time_in_parkings": 0, "spent_by_calc": 0, "last_message_move_state_tooltip": "", "dart_avg": 0, "last_message_dt": "", "mileage": 0, "motohours": 0, "motohourstoh "_ "," obj_id ": 26377," used_by_norm ": 0," avg_speed_in_kph ": 0," mileage_counter_val ":" "," defueled ": 0," dut_spent ": 0," dart_spent ": 0 g,": dut_ , "last_message_coordinates_str": "", "motohours_str": "0сек.", "defuel_cnt": 0, "is_total_row": false}, {"refueled": 0, "dut_begin_level": 0, "total_time_in_trips": last_message_sensors ":" "," obj_name ":" asuto "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0sec. "," dut_end_level ": 0," used_by_by_str "до_поїздки:по_норму" : "0сек.", "Grp_t xt ":" "," total_time_in_parkings ": 0," used_by_calc ": 0," last_message_move_state_tooltip ":" "," dart_avg ": 0," last_message_dt ":" "," пробіг ": 0," motohours ": 0, "motohour_counter_val": "", "obj_id": 26336, "spent_by_norm": 0, "avg_speed_in_kph" : 0, "mileage_counter_val": "", "defueled": 0, "dut_spent": 0, "dart_spent": 0, "dut_avg": 0, "last_message_coordinates_str": "", "motohours_str": "0сек.", "defuel_cnt": 0, "is_total_row": false}, {"refueled": 0, "dut_begin_level": 0_trips ": 0," last_message_sensors ":" "," obj_name ":" h, kh "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0сек. "," Dut_end_level_bytrip_by_by_norm_by_by_norm_by_ ": 0," refuel_cnt ": 0," total_time_in_trips_str ":" 0сек. "," Grp_txt ":" "," total_time_in_parkings ": 0," used_by_calc ": 0," last_message_move_state_tooltip ":" "": dart , "last_message_dt": "", "пробіг": 0, "0, мотогодин": "motohour_counter_val": "", "obj_id": 26725, "spent_by_norm": 0, "avg_speed_in_kph": 0, "mileage_counter_val": " "," defueled ": 0," dut_spent ": spent," dart_ " dut_avg ": 0," last_mess age_coordinates_str ":" "," motohours_str ":" 0сек. "," defuel_cnt ": 0," is_total_row ": false}, {" refueled ": 0," dut_begin_level ": 0," total_time_in_trips ": 0", last_message_sensage : "Напруга на борту = 290,0 В, напруга акумулятора = 733,0 В", "obj_name": "Honda A145", "mileage_by_trip": 0, "max_speed_in_kph": 0 0sec.", "Dut_end_level" : 0, "spent_by_norm_by_trip": 0, "refuel_cnt": 0, "total_time_in_trips_str": "0sec.", "Grp_txt": "", "total_time_in_parkings": 0, "cspent": 0, "cspent": "last_message_tooltip_str" протягом 48 секунд "," dart_avg ": 0," last_message_dt ":" 26.08.2021T16: 28: 27 "," пробіг " : 0," motohours ": 0," motohour_counter_val ":" 0 год. "," obj_id " : 10302, "spent_by_norm": 0, "avg_speed_in_kph": 0, "mileage_counter_val": "0 км", "звантажено": 0, "dut_spent": 0, "dart_spent": 0, "dut : 0, "last_messr_coordinates_coordinates ":" 51,99572, 70,933643 (10) "," motohours_str ":" 0сек. "," Defuel_cnt ": 0," is_total_row ": false}, {" refueled ": 0," dut_begin_level ": 0," total_time_in_trips ": 0, "last_message_sensors": "", "obj_name": "Mersede s-Benz 140 "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0сек. "," dut_end_level ": 0," used_by_norm_by_trip ": 0," refuel_cnt ": 0," total_time_str " 0sec. "," Grp_txt ":" "," total_time_in_parkings ": 0," used_by_calc ": 0move_messta: 0," " Останній стан: означає 3 години, 15 хвилин, 11 секунд "," Dart_avg ": 0," last_message_dt ":" 26.08.2021T16: 29:04 "," пробіг ": 0," мотогодин ": 0, " motohour_counter_val ":" 0 год. "," obj_id ": 10305," used_by_norm ": 0," avg_speed_in_kph " : 0, "mileage_counter_val": "0 км", "звантажено": 0, "dut_0,spent" dart_spent": 0, "dut_avg": 0, "last_message_coordinates_str": "43.360428, 77.016322 (16)", " motohours_str ":" 0сек. "," defuel_cnt ": 0," "is_fueled_," is_fueled_ : 0," dut_begin_level ": 0," total_time_in_trips ": 0," last_message_sensors ":" Бортова напруга = 13426,0 В, датчик запалювання = Вимкнено "," obj_name ":" Subaru 157 "," mileage_by_trip " max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0sec. "," Dut_end_level ": 0," used_by_norm_ , "refuel_cnt": 0, "total_time_in _trips_ str ":" 0сек. "," grp_txt ":" "," total_time_in_parkings ": 0," used_by_calc ": 0," last_message_move_state_tooltip ":" Об'єкт означає 51 секунду. "," dart_avg ": 0," last_ "" 26.08.2021T16: 28: 24 "," пробіг ": 0," motohours ": 0," motohour_counter_val ":" 0 год. "," Obj_id ": 10304," used_by_norm ": 0," avg_speed_in_kph ": 0," mileage_counter_val ":" 0 km "," defueled ": 0," dut_spent ": 0," dart_spent ": av " : 0," last_message_coordinates_str ":" 49.97726, 82.586107 (16) "," motohours_str ":" 0сек. "," Defuel_cnt ": 0," is_total_row ": false}, {" refueled ": 0," dut_begin_level ": 0," total_time_in_trips ": 0," last_message_sensors ":" "," obj_name ":" Aygyr " ", mileage_by_trip": 0, "max_speed_in_kph": 0, "total_time_in_parkings_str": "0сек.", "dut_end_level": 0, "spent_by_norm_by_trip": 0, "refuel_cnt": 0, "загальний час_поїздки": "gr_time_trip_t_ser". ": 0," used_by_calc ": 0," last_message_move_state_tooltip ":" "," dart_avg ": 0," last_message_dt ":" "," пробіг ": 0," motohours ": 0, "motohour_counter_val": "", obj_id": 26379, "spent_by_norm": 0, "avg_speed_in_k ph ": 0," mileage_counter_val ":" "," defueled ": 0," dut_spent ": 0," dart_spent ": 0," dut_,avg " last_message_coordinates_str ":" "," motohours_str ":" 0сек. "," defuel_cnt ": 0," is_total_row ": false}, {" refueled ": 0," dut_begin_level ": 0," total_time_in_trips "_mess ": 0 :" "," obj_name ":" Газель "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_ parkings_str ":" 0сек. "," dut_end_level ": 0," used_by_norm_by_trip ": 0," refuel_cnt ": 0," total_time_ grin_trisepxt. : "", "total_time_in_parkings": 0, "spent_by_calc": 0, "last_message_move_state_tooltip": "Останній стан: розрахований на 3 д., 11 год., 36 хв., 42 сек.", "dart_avg": 0, "останній мес": "08/26/2021T16: 28: 54", "пробіг": 0, "motohours": 0, "motohour_counter_val": "0 год.", "Obj_id": 10303, "spent_by_norm": 0, "avg_speed"_in 0, "mileage_counter_val": "0 km", "defueled": 0, "dut_spent": 0, "dart_spent": 0, "dut_avg": 0, "last_message_coordinates_str": "43.232315, 76.91420mo (tohours)_", ": "0сек.", "Defuel_cnt": 0, "is_total_row": false}]}