geofence Event

The geofence event is triggered when a thing enters or exits a geofence.

Form

Parameters

Name

Type

Required

Description

Geofence event

String

Yes 

Whether this trigger should execute when a thing enters or exits a geofence.

Geofence key

String

 

Limit this trigger to a geofence specified by key. Leave blank to apply to all geofences.

Geofence tags

String

Limit this trigger to a geofence identified by specific tags. Leave blank to apply to geofences with any tag.

Thing key

String

 

Limit this trigger to a thing specified by key. Leave blank apply to all things.

Thing tags

String

 

Limit this trigger to things identified by specific tags. Leave blank to apply to things with any tag.

Event variables

Name

Type

Description

$(event.geofence.key)

String

The key of the geofence that the thing interacted with.

$(event.geofence.name)

String

The name of the geofence that the thing interacted with.

$(event.location.lat)

Float

The latitude of the thing that initiated this trigger.

$(event.location.lng)

Float

The longitude of the thing that initiated this trigger.

$(event.location.ts)

String

The timestamp when the thing entered/exited the geofence and initiated this trigger.

$(event.thing.key)

String

The key of the thing that initiated this trigger.

$(event.thing.name)

String

The name of the thing that initiated this trigger.