Geofencing

A geo-fence is a virtual perimeter for a real-world geographic area. A geo-fence could be dynamically generated—as in a radius around a store or point location, or a geo-fence can be a predefined set of boundaries, like school attendance zones or neighborhood boundaries. source

Create new geofence area

POST https://api.bealder.com/v2/region/{id}/geofencing

GET Parameters

Name Require Description
id true venue ID

POST Parameters

Name Require Description
name true Geofence name
longitude true Longitude
latitude true Latitude
radius true radius in meter
active true if active, set 1, else 0

HEADER Parameters

Name Description
x-bealder-key Your email
x-bealder-token Your token

Example

curl -X POST https://api.bealder.com/v2/region/1/geofencing
 -H "content-Type:application/json"
 -H "x-bealder-key:example@bealder.com"
 -H "x-bealder-token:20f586ec4b244e00a81d00bca91b7d7f"
 -d '{  
      "name":"Area 51",
      "longitude": 4.86116816,
      "latitude": 45.76395439,
      "radius": 480,
      "active": true
   }'

Edit Geofencing

PUT https://api.bealder.com/v2/region/{id}/geofencing/{uid}

GET Parameters

Name Require Description
id true Venue ID
uid true Geofencing ID

PUT Parameters

Name Require Description
name true Geofence name
longitude true Longitude
latitude true Latitude
radius true radius in meter
active true if active, set 1, else 0

HEADER Parameters

Name Description
x-bealder-key Your email
x-bealder-token Your token

List Geofencing

GET https://api.bealder.com/v2/region/{id}/geofencing

GET Parameters

Name Require Description
id true Venue ID

HEADER Parameters

Name Description
x-bealder-key Your email
x-bealder-token Your token

Delete Geofencing

DELETE https://api.bealder.com/v2/region/{id}/geofencing/{uid}

GET Parameters

Name Require Description
id true Venue ID
uid true Geofencing ID

HEADER Parameters

Name Description
x-bealder-key Your email
x-bealder-token Your token

To get your token, go to authentication.