gps geofencing filter

Filters incoming messages by GPS based parameters. Extracts latitude and longitude from data or metadata and checks if they are inside configured perimeter (geo fence).

Fetch perimeter information from message 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 perimeter information from node configuration

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

Polygon

Circle

if configured latitude and longitude are inside configured perimeter message sent via True chain, otherwise False chain is used.

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