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.
Parameter | Type | Description | Example/Possible Values |
---|---|---|---|
QUERY PARAMS | |||
name | string | Geofence name - must be unique | bermuda_triangle |
definition | string | Latitude/Longitude - CSV coordinate pairs - minimum 3 points | 25.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"
}
}