GeoTerritories icon

GeoTerritories

n8n node to validate a geo point against a custom geo fence.

Validate → Validate Using Latitude and Longitude

AI-generated

Summary

Validate a geographic point specified by latitude and longitude against one or more custom geo fences to determine if the point lies within them.

Inputs

  • Validate Against (required) — Choose whether to validate the point against all available fences, multiple selected fences, or one selected fence.
  • Fence List Name or ID — When validating against one fence, select the fence by name or ID from the list or specify it using an expression.
  • Fence List Names or IDs — When validating against multiple fences, select one or more fences by name or ID from the list or specify them using expressions.
  • Latitude (required) — The latitude coordinate of the point to validate.
  • Longitude (required) — The longitude coordinate of the point to validate.

Output shape

a list of validation results, one per input item, each indicating whether the given point falls within the specified fence(s).

Each input item will produce one output item. If validation fails for an item and 'continue on fail' is enabled, the output item will contain an error message. The fences used for validation depend on the 'Validate Against' selection ('allFences' validates against all fences, 'oneFence' uses a single fence, 'multipleFences' uses multiple fences). The response is JSON formatted with details per fence validation.

Examples

Example 1: Validate a point against one specific fence

Set 'Validate Against' to 'oneFence' and select or specify the single fence ID; enter the Latitude and Longitude coordinates to validate.

Example 2: Validate a point against multiple fences

Set 'Validate Against' to 'multipleFences' and select or specify the fence IDs; enter the Latitude and Longitude coordinates to validate.

Example 3: Validate a point against all fences

Set 'Validate Against' to 'allFences'; enter the Latitude and Longitude coordinates to validate.

Links

Discussion