GPS geofencing events

Produces incoming messages by GPS based parameters. Extracts latitude and longitude from incoming message data or metadata and returns different events based on configuration parameters (geo fence).

The rule node fetches perimeter information from message metadata by default. If Fetch perimeter information from message metadata is unchecked, additional information should be configured.

Fetch information from metadata

There are two options of area definition based on the perimeter type:

Polygon

Metadata of the incoming message must include key with name perimeter and following data structure:

[[lat1,lon1],[lat2,lon2], ... ,[latN,lonN]]

Circle

"centerLatitude": "value1", "centerLongitude": "value2", "range": "value3"

All values for these keys are in double-precision floating-point data type.

The "rangeUnit" key requires specific value from a list of METER, KILOMETER, FOOT, MILE, NAUTICAL_MILE (capital letters obligatory).

Fetch information from node configuration

There are two options of area definition based on the perimeter type:

Polygon

Circle

Event Types

There are 4 types of events managed by geofencing rule node:

  • Entered — is reporting whenever latitude and longitude from the incoming message to belong the required perimeter area for the first time;

  • Left — is reporting whenever latitude and longitude from the incoming message not belong the required perimeter area for the first time;

  • Inside and Outside events are used to report current status.

Administrator can configure duration time threshold for reporting inside or outside event. For example, whenever minimal inside time is set to 1 minute the message originator is considered as being inside the perimeter 60 seconds after entering the area. Minimal outside time defines whenever message originator is considered as out of the perimeter as well.

Failure chain will to be used when:

  • incoming message has no configured latitude or longitude key in data or metadata.

  • missing perimeter definition;

Last updated