Get data on passenger traffic
Example:
https://<address>/api/api.php?cmd=pass_counter
Parameters:
cmd : pass_counter
imei : imei of the car equipped with an auto conductor (optional. If not specified, the selection will be for all cars equipped with an auto conductor)
ts : selection start time (unixtimestamp)
te : selection end time (unixtimestamp)
Request:
https://<address>/api/api.php?cmd=pass_counter&ts=1554670800&te=1554757200&imei=963852741159753
Response:
{
"code":0,
"data":{
"36571":{
"agent_id":36571,
"stops":[
{ "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":1371, "door_id":0, "lat":"54.923 8", "lon":"51.9098", "p_in":4, "p_out":0, "ts":1554697232, "video_id":14 }, { "busline_id":1371, "door_id":0, "lat":"54.8846", "lon":"51.9821", "p_in":4,
"p_out":0, "ts":1554697737, "video_id":15 }, { "busline_id":1371, "door_id":0, "lat":"54.8726", "lon":"52.0248", "p_in":1, "p_out":1, "ts":1554697969, "video_id":1 6 } ], "vehiclenumber":"autoconductor" } }, "msg":"OK" }