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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
origins Origins as JSON array (or comma-separated). | array | Yes | — | array of string | — |
destinations Destinations as JSON array (or comma-separated). | array | Yes | — | array of string | — |
mode Travel mode — Google Maps accepts only the listed values. | string | No | driving | one 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
| Field | Type | Example |
|---|---|---|
rows | array | — |
count | number | — |
{
"count": 0,
"rows": []
}Related Google Maps Platform nodes
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.