Szablon żądania:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = reports / get_motohours_by_interval & params = {"obj_id": <obj_id>, "begin_dt": "<begin_dt>", "end_dt": "<end_dt > "}
Parametry żądania:
sid
unikalny identyfikator sesji
obj_id
begin_dt
end_dt
Szablon odpowiedzi:
{"count": <count>, "motohours": <motohours>}
Parametry odpowiedzi:
motohours
tablica motorów
Poproś o przykład:
http: //morseti.barkuan8.com / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = reports / get_motohours_by_interval & params = {"obj_id": 10524, "begin_dt": "01.06.2016T10: 00: 00", "end_dt": "01.06. 2016T11: 10: 00 ”}
Przykład odpowiedzi:
{"count": 2, "motohours": [{"finish_motohours_in_sec": 590, "message_id_list": [697737,697738,697739,697740,697741,697745,697743,697744,697745,697746, 9747,646, 774, 697, 774, 7747,697, 774, 977449, 697750,697751,697752,697753,697754,697755], „message_cnt”: 19, „time_from_prev_end_to_cur_beg”: 0, „duration_in_sec”: 590, „start_message_id”: 697737, „finish_message_lon”: 76.8967104, „motohours_in_sec_str”: „9min. , 50s. "," Start_message_location ":" 289/1, улица Розыбакиева, Баганашыл, Almaty, Бостандыкский район, Almaty, 050023, Kazachstan "," start_message_coordinates_str ":" 43.194832, 76.893901 (5) "," start_message_lon ": 76.8939008, „start_message_lat”: 43.194832, „time_from_prev_end_to_cur_beg_str”: „”, „finish_motohours_in_sec_str”: „9min., 50s.”, „finish_message_dt”: „01.06.2016T10: 44: 56”, „motion_productivity”: 89,83, „milage”: 3397 , "start_motohours_in_sec": 0, "start_motohours_in_sec_str": "", "duration_short_str": "9min., 50s.", "motohours_in_sec": 590, "avg_speed_in_kph": 34, "finish_message_coordinates_str" : "43.214048, 76.89671 (8)", "lokalizacja_wykonania_wykonania": "31, St Baikadamov, Баганашыл, Almaty, Бостандыкский район, Almaty, 050060, Kazachstan", "obj_id": 10524, "finish_message_lat": 43.214048, "movement_time_in_sec": 530, „finish_message_id”: 697755, „movement_time_in_sec_str”: „8min., 50s.”, „Max_speed_in_kph”: 50, „idling_time_in_sec”: 60, „start_message_dt”: „01.06.2016T10: 35: 06”, „idling_time_in_sec_str”: „1min.”}, {„Finish_motohours_in_sec”: 820, „message_id_list”: [697929,697930,697931,697932,697933,697934,697935,697936,697937,697938], „message_cnt”: 10, „time_from_prev_end_to_cur_beg”: 1272 , „duration_in_sec”: 230, „start_message_id”: 697929, „finish_message_lon”: 76.894336, „motohours_in_sec_str”: „3 min. 050060, Kazachstan "," start_message_coordinates_str ":" 43.213459, 76.897894 (8) "," start_message_lon ": 76.8978944," start_message_lat ": 43.2134592," time_from_prev_end _to_cur_beg_str ":" 21min., 12s. "," finish_motohours_in_sec_str ":" 13min., 40s. "," finish_message_dt ":" 01.06.2016T11: 09: 58 "," motion_productivity ": 100," milage ": 1834," start_motohours_in_sec ": 590," start_motohours_in_sec_str ":" 9min., 50s. "," duration_short_str ":" 3min., 50s. "," motohours_in_sec ": 230," avg_speed_in_kph ": 36," finish_message_coordinates_str ":" 43.200099, 76.894336 ( 8) „,„ wykończenie_lokacji ”:„ Кожабекова, Kozhabekov St, Баганашыл, Almaty, Бостандыкский район, Almaty, 050023, Kazachstan ”,„ obj_id ”: 10524,„ finish_message_lat ”: 43.2000992,„ movement_time_in_sec ”: 230,„ finish_message_id ”: 697938, „movement_time_in_sec_str”: „3min., 50s.”, „Max_speed_in_kph”: 43, „idling_time_in_sec”: 0, „start_message_dt”: „01.06.2016T11: 06: 08”, „idling_time_in_sec_str”: „”}]}