History of visits of Geozones
Example:
https://<address>/api/api.php?cmd=ag_geozones
Parameters:
cmd : ag_geozones
start : start date of period
stop: end date of period
imei : vehicle id (you can specify multiple vehicles separated by comma delimeter)
Request:
https://<address>/api/api.php?cmd=ag_geozones&start=1515109960&stop=1619123320&imei=9151
https://<address>/api/api.php?cmd=ag_geozones&start=1515109960&stop=1619123320&imei=9151,38592
https://<address>/api/api.php?node=1&cmd=ag_geozones&start=1515109960&stop=1619123320&imei=9151,3859
Answer:
For one imei:
{
"code":0,
"msg":"OK",
"data":[
{
"group":"General",
"zonename":"Golitsyno base", # geozone name
"ts":1606805707, # time of entrance to geozone
"te":1606808500 # time of exit from geozone
},
{
"group":"General",
"zonename":"Golitsyno Base",
"ts":1606865643,
"te":1606868103
}
]
}
If imei's more than one:
{
"code":0,
"msg":"OK",
"data":{
"865291046424635":[ # imei of device
{
"group":"General",
"zonename":"Golitsyno Base",
"ts":1606805707, # time of entrance to geozone
"te":1606808500 # time of exit from geozone
},
{
"group":"General",
"zonename":"Golitsyno Base",
"ts":1606865643,
"te":1606868103
}
],
"867481037184458":[
{
"group":"General",
"zonename":"Golitsyno Base",
"ts":1607949101,
"te":1607956478
},
{
"group":"General",
"zonename":"Golitsyno Base",
"ts":1608012176,
"te":1608041334
}
]
}
}