Szablon żądania:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = reports / get_parkings_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>, "parkings": <parkings>}
Parametry odpowiedzi:
parkingi
tablica parkingów
Poproś o przykład:
http: //justrac.com / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = reports / get_parkings_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, "parkings": [{"finish_message_dt": "01.06.2016T10: 36: 06", "message_id_list": [697558,697559,697560,697561,697562,697563,697564,697565,697565, 697566,697566,697567,697568,697569,697570,697571,697572,697572,69757,697573,69754,69755,697575,75756,69756,697577,69758,69758,697579,69758,69758,69757,69757569757, 6975, 6975, 6975, 6975, 6975, 6975, 6975, 6975, 6975, 6975, 69758, 6975, 6975, 697583, 6975, 6975, 697583, 6975, 6975, 697583, 6975, 6975, 697583.697583. 697736,697737,697738], „message_cnt”: 37, „time_from_prev_end_to_cur_beg”: 0, „duration_short_str”: „36min., 3s.”, „Duration_in_sec”: 2163, „finish_message_location”: „289/1, улица Розыбакиева, Баганашыл , Almaty, Бостандыкский район, Almaty, 050023, Kazachstan "," finish_message_coordinates_str ":" 43.19489, 76.893926 (7) "," obj_id ": 10524," finish_message_lat ": 43.1948896," start_message_id ": 697558," finish_message_id ": 697738, "finish_message_lon": 76.8939264, "start_message_location": "289/1, улица Розыбакиева, Баганашыл, Almaty, Бостандыкский район, Almaty, 050023, Kazachstan", "start_message_coordinates_s tr ":" 43.195043, 76.893267 (7) "," start_message_lat ": 43.1950432," start_message_lon ": 76.8932672," start_message_dt ":" 01.06.2016T10: 00: 03 "}, {" finish_message_dt ":" 01.06.2016T11: 06 : 08 "," message_id_list ": [697755,697756,697757,697768, 675 759 697 760 697 771 697 776 697 776 697 776 697 767 697 776 697 776 697 929]," message_cnt ": 14," time_from_prev_end_to_cur_beg ": 530, „duration_short_str”: „21min., 12s.”, „duration_in_sec”: 1272, „finish_message_location”: „217, Gagarin Ave, Баганашыл, Almaty, Бостандыкский район, Almaty, 050060, Kazachstan”, „finish_message_coordinates_str”: „43.213459, 76.897894 (8) „,„ obj_id ”: 10524,„ finish_message_lat ”: 43.2134592,„ start_message_id ”: 697755,„ finish_message_id ”: 697929,„ finish_message_lon ”: 76.8978944,„ start_message_location ”:„ 31, Baikadamov St, Баганашыл, Almaty, Бостандыкский район, Almaty, 050060, Kazachstan "," start_message_coordinates_str ":" 43.214048, 76.89671 (8) "," start_message_lat ": 43.214048," start_message_lon ": 76.8967104," start_message_dt ":" 01.06.2016T10: 44: 56 "}]}