Skip to main content

Creating a Geofence (GET)

https://core.rock7.com/API3/Geofence/Create

This command will create a new Geofence from the supplied coordinate pairs. The Geofence will be locked and is not editable after it is created.

ParameterTypeDescriptionExample/Possible Values
QUERY PARAMS
namestringGeofence name - must be uniquebermuda_triangle
definitionstringLatitude/Longitude - CSV coordinate pairs - minimum 3 points25.41,-80.23,32.38,-64.67,18.38,-65.63

Example with Parameters

curl --request GET \
--url 'https://core.rock7.com/API3/Geofence/Create?name=bermuda_triangle&definition=25.41,-80.23,32.38,-64.67,18.38,-65.63&username=myUsername&password=myPassword' \
--header 'accept: application/json'

Response

{
"result": true,
"geofence": {
"name": "bermuda_triangle",
"definition": "25.41,-80.23,32.38,-64.67,18.38,-65.63",
"id": "JYXyvGekqxMKABvYGyEzbRDgVQZOwmdp",
"type": "geofence"
}
}