Iarratas ar theimpléad:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = tuarascálacha / get_motohours_by_interval & params = {"obj_id": <obj_id>, "start_dt": "<begin_dt>", "end_dt": "<end_dt > "}
Iarr paraiméadair:
sid
aitheantóir seisiúin uathúil
obj_id
start_dt
end_dt
Teimpléad freagartha:
{"comhaireamh": <count>, "motohours": <motohours>}
Paraiméadair fhreagartha:
motohours
sraith de mhúnlaí
Iarr sampla:
http: //uvivion.com / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = tuarascálacha / get_motohours_by_interval & params = {"obj_id": 10524, "start_dt": "01.06.2016T10: 00: 00", "end_dt": "01.06. 2016T11: 10: 00 "}
Sampla freagartha:
{"comhaireamh": 2, "múchann": [{"Críochnaigh_motohours_in_sec": 590, "message_id_list": [697737,697738,697739,697740,697741,697742,697743,697744,697745,697746,697747,697748,697746,697747,697748,697749, ",". \ T ": , 50s. "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", "movement_productivity": 89.83, "míleáiste": 3397 , "start_motohours_in_sec": 0, "start_motohours_in_sec_str": "", "period_short_str": "9min., 50s.", "motohours_in_sec": 590, "avg_speed_in_kph": 34, "finish_message_coordinates_str" : "43.214048, 76.89671 (8)", "críochnaigh_message_location": "31, Baikadamov St, Баганашыл, Almaty, Бостандыкский район, Almaty, 050060, Chasacstáin", "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."}, {"Críochnaigh ",". \ t 050060, An Chasacstáin "," 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 "," movement_productivity ": 100," mileage ": 1834," start_motohours_in_sec ": 590," start_motohours_in_sec_str ":" 9min., 50s. "," long_short_str ":" 3min., 50s. "," motohours_in_sec ": 230," avg_speed_in_kph ": 36," finish_message_coordinates_str ":" 43.200099, 76.894336 ( 8) "," Críochnaigh, " 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": ""}]}