Optimize Waypoints
geo_routes.optimize_waypoints
ActionAmazon Web Servicesconnection required
Calls the AWS geo_routes API (SigV4).
OptimizeWaypoints calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Amazon Location Service Routes V2
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 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 |
|---|---|---|---|---|---|
region AWS region (overrides the connection). | string | No | — | — | — |
request Request body as JSON — this operation takes a structured request. | object | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
Connections | array | — |
Distance | number | — |
Duration | number | — |
ImpedingWaypoints | array | — |
{
"Connections": [],
"Distance": 0,
"Duration": 0,
"ImpedingWaypoints": []
}Related Amazon Location Service Routes V2 nodes
See Optimize Waypoints run in a workflow.
In a technical demo we add the Amazon Location Service Routes V2 connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.