Iarratas ar theimpléad:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = tuarascálacha / get_trips_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>, "turais": <trips>}
Paraiméadair fhreagartha:
turais
sraith de thurais
Iarr sampla:
http: //justrac.com / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = tuarascálacha / get_trips_by_interval & params = {"obj_id": 10524, "start_dt": "01.06.2016T10: 00: 00", "end_dt": "01.06. 2016T11: 10: 00 "}
Sampla freagartha:
{"comhaireamh": 2, "turais": [{"finish_message_dt": "01.06.2016T10: 44: 56", "míleáiste": 3391, "message_id_list": [697738,697739,697740,697741,697742,697743, 697744,697745,697746,697747,697751,697752,697503,697751,697755], "message_cnt": 18, "time_from_prev_end_to_cur_beg": 0, "period_short_str": "8min., 50s.", " avg_speed_in_kph ": 34," period_in_sec ": 530," finish_message_location ":" 31, Baikadamov St, Баганашыл, Almaty, Бостандыкский район, Almaty, 050060, An Chasacstáin "," finish_message_coordinates_str ":" 43.214048, 76.89671 (8) "," obj_id ": 10524," finish_message_lat ": 43.214048," start_message_id ": 697738," finish_message_id ": 697755," finish_message_lon ": 76.8967104," start_message_lon ":" 289/1, олиыбакием , Kazakhstan "," start_message_coordinates_str ":" 43.19489, 76.893926 (7) "," max_speed_in_kph ": 50," start_message_lat ": 43.1948896," start_message_lon ": 76.8939264," start_mes sage_dt ":" 01.06.2016T10: 36: 06 "," time_from_cur_end_to_next_beg ": 1272}, {" finish_message_dt ":" 01.06.2016T11: 09: 58 "," mileage ": 1834," message_id_list ": [697929,697930, 697931,697932,697933,697934,697935,697936,697937,697938], "message_cnt": 10, "time_from_prev_end_to_cur_beg": 1272, "period_short_str": "3min., 50s.", "Avg_speed_in_kph": 36, "period_in_sec" : 230, "finish_message_location": "Кожабекова, Kozhabekov St, Баганашыл, Almaty, Бостандыкский район, Almaty, 050023, Chasacstáin", "finish_message_coordinates_str": "43_00099, 76.894336 (8)", "obj_id": 10524, "finish_message_lat": 43.2000992, "start_message_id": 697929, "finish_message_id": 697938, "finish_message_lon": 76.894336, "start_message_lon": "217, Gagarin Ave, Баганашыл, Almaty, Бостандыкский район, Almaty, 050060, An Chasacstáin", "start_message_coordinates_str": "43.213459 , 76.897894 (8) "," max_speed_in_kph ": 43," start_message_lat ": 43.2134592," start_message_lon ": 76.8978944," start_message_dt " : "01.06.2016T11: 06: 08", "time_from_cur_end_to_next_beg": 0}]}