Directions

google_maps.directions
ActionBusiness appsconnection required

Calls the Directions API GET /directions/json.

Route between two points with distance, duration and step text.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Google Maps Platform
Secret shape
raw API key (or {"api_key"})
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
origin
Origin address or lat,lng.
stringYes———
destination
Destination address or lat,lng.
stringYes———
mode
Travel mode — Google Maps accepts only the listed values.
stringNodrivingone of "driving", "walking", "bicycling", "transit"—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "mode": "driving"
}

Output

One shape.

result

FieldTypeExample
found
boolean—
distance_m
number—
duration_s
number—
summary
string—
steps
array—
{
  "distance_m": 0,
  "duration_s": 0,
  "found": false,
  "steps": [],
  "summary": ""
}

See Directions run in a workflow.

In a technical demo we add the Google Maps Platform connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.