Mileage in geofences

 
Example:
https://<address>/api/api.php?cmd=zones_mileage
 
Parameters:
cmd: zones_mileage
ts: The start time of the sample
te: The end of the sample
IMEI: list of IMEI objects through a comma
Zones: the names of the geozon through a comma -optional
 
Request:
https://<address>/api/api.php?cmd=zones_mileage&ts=1596229200&te=1597006800&imei=867857035056105,123123123&zones=
Simferopol, Belogorsk, Sudak
 
Answer:
{
"code":0,
 "ts":"1596229200",
 "te":"1597006800",
 "data":{
 "867857035056105":[
 {
 "zone":"Simferopol",
 "duration":88308,
 "mileage":259.84291552999997
 },
 {
 "zone":"Out of town",
 "duration":21564,
 "mileage":283.47114896
 },
 {
 "zone":"Belogorsk",
 "duration":704,
 "mileage":10.770273840000002
 },
 {
 "zone":"Zander",
 "duration":1332,
 "mileage":11.45146735
 }
 ]
 }
}