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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
origin Origin address or lat,lng. | string | Yes | — | — | — |
destination Destination address or lat,lng. | string | Yes | — | — | — |
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 |
|---|---|---|
found | boolean | — |
distance_m | number | — |
duration_s | number | — |
summary | string | — |
steps | array | — |
{
"distance_m": 0,
"duration_s": 0,
"found": false,
"steps": [],
"summary": ""
}Related Google Maps Platform nodes
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.