Distance Matrix

google_maps.distance_matrix
ActionBusiness appsconnection required

Calls the Distance Matrix API GET /distancematrix/json.

Travel distance and time for every origin/destination pair.

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
origins
Origins as JSON array (or comma-separated).
arrayYes—array of string—
destinations
Destinations as JSON array (or comma-separated).
arrayYes—array of string—
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
rows
array—
count
number—
{
  "count": 0,
  "rows": []
}

See Distance Matrix 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.