List of geozones

 
Example:
http://<address>/api/api.php?cmd=geofencelist
 
Parameter:
cmd : geofencelist
 
Answer:
{
"code":0,
"msg":"OK",
"data":[
{
"id":157828,
"zonename":"Test magnet",
"zonetype":2, -> type index: 1 - polygon, 2 - circle
"external_id":null, -> external geozone identifier
"created_at":1609780839, -> creation timestamp
"updated_at":1609780839, -> update timestamp
"color":"#00CC00",
"info":"text information about the geozone",
"group_name":"TEST",
"group_id":6531,
"geometry":{
"type":"circle",
"coordinates":[
40.036497, -> longitude
46.981936 -> latitude
],
"radius":305 -> radius in meters
}
},
{
"id":153244,
"zonename":"school",
"zonetype":1, -> type index: 1 - polygon, 2 - circle
"external_id":1234, -> external geozone identifier
"created_at":1609780839, -> creation timestamp
"updated_at":1609780839, -> update timestamp
"color":"#FF9900",
"info":"kml upload",
"group_name":"TEST",
"group_id":6531,
"geometry":{
"type":"polygon",
"coordinates":[ -> Array of arrays of polygon coordinates
[
[
[
55.184334, -> longitude
25.112866 -> latitude
],
[
55.183512,
25.113472
],
[
55.182154,
25.112516
],
[
55.183511,
25.111016
],
[
55.184923,
25.112133
]
]
]
]
}
}
]
}