Geofences list
Example:
https://<address>/api/api.php?cmd=geofencelist
Parameters:
cmd : geofencelist
Answer:
{
"code":0,
"msg":"OK",
"data":[
{
"id":157828,
"zonename":"Test Magnit",
"zonetype":2, -> type index: 1 - polygon, 2 - circle
"external_id":null, -> external geofence id
"created_at":1609780839, -> create timestamp
"updated_at":1609780839, -> update timestamp
"color":"#00CC00",
"info":"geozone text info",
"group_name":"TEST",
"group_id":6531,
"geometry":{
"type":"Circle",
"coordinates":[
40.036497, -> longitude
46.981936 -> lattitude
],
"radius":305 -> radius in meters
}
},
{
"id":153244,
"zonename":"school",
"zonetype":1, -> type index: 1 - polygon, 2 - circle
"external_id":1234, -> external geofence id
"created_at":1609780839, -> create 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
]