Import circular geofences using REST API

KML files do not support importing circle geofences (KML only support polygons). To import circular geofences, follow these guidelines:

1. Authenticate to the platform using REST.
2. Use the Geofence Post method.

You can use the following model as a sample to try directly using the POST method.

{
"circleShape": {
"center": {
"latitude": 59.32778,
"longitude": 18.06889
},
"radius": 100
},
"description": "my circle",
"id": 0,
"name": "Circle",
"polygonShape": {
"vertices": [
{
"latitude": 0,
"longitude": 0
}
]
},
"routeShape": {
"radius": 0,
"vertices": [
{
"latitude": 0,
"longitude": 0
}
]
},
"shapeType": "Circle"
}

 

Repeat this structure for each geofence you want to add to your application.