Geocode Address Node

From FojiSoft Docs
Revision as of 23:36, 5 March 2025 by Mitchell.Hirsche (talk | contribs) (Geocode Address)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

The Geocode Address node in Pathways is used to convert a given address into geographical coordinates (latitude and longitude). This allows workflows to integrate location-based functionalities such as mapping, proximity calculations, and geographic filtering.


Node Configuration

1. Name

  • The node's name, which is used for identification within the workflow.
  • Default: Geocode Address
  • Example: Convert Office Address to Coordinates

2. Address

  • The input field where the address to be geocoded is provided.
  • Type Options:
    • JavaScript Statement – A simple JavaScript statement to define the address.
    • JavaScript Function – A custom function returning the address dynamically.
    • Handlebars Template – Allows for dynamic expressions to fetch address values.
  • Example (JavaScript Statement): "1600 Amphitheatre Parkway, Mountain View, CA"
  • Example (Handlebars Template): customer.office_address

3. Variable Name

  • Defines the output variable where the latitude and longitude will be stored.
  • Required field.
  • Example: geocoded_location

How It Works

  1. Address Input – The node takes an address input based on the selected type (JavaScript, Handlebars, or function).
  2. Geocoding Process – The node queries an API or internal system to translate the address into latitude and longitude.
  3. Output Storage – The resulting coordinates are stored in the specified variable.

Use Cases

Mapping Integration: Convert addresses into coordinates to display on maps.

Proximity-Based Filtering: Find nearby businesses, customers, or locations.

Automated Routing: Use geocoded locations to optimize delivery routes.


Common Errors & Fixes

Type is required → Ensure an address input type is selected.

Variable Name is required → Specify a variable name to store the output coordinates.

This node enables seamless integration of geographic data into automated workflows, enhancing location-based decision-making in Pathways.