User Manual
Version 7.6
×

Getting data on passenger traffic

 
Example:
https://<address>/api/api.php?cmd=pass_counter
 
Parameter:
cmd : pass_counter
imei : imei of a car equipped with an autoconductor (optional. If not specified, then the selection will be for all cars,
equipped with an autoconductor)
ts : sampling start time (unixtimestamp)
te : sampling end time (unixtimestamp)
 
Request:
https://<address>/api/api.php?cmd=pass_counter&ts=1554670800&te=1554757200&imei=963852741159753
 
Answer:
{
"code":0,
"data":{
 "36571":{
 "agent_id":36571,
 "stop":[
 {
 "busline_id":1371,
 "door_id":0,
 "lat":"54.9346",
 "lon":"51.8981",
 "p_in":1,
 "p_out":0,
 "ts":1554696995,
 "video_id":13
 },
 {
 "busline_id"