Templates / Optimize delivery routes for carriers from Google Sheets using Google Maps

Optimize delivery routes for carriers from Google Sheets using Google Maps

Ready for 3.0

by Davide Boizza ✓ · 122 views · created 2026-05-12 · Project Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 16 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Sheets. It also calls maps.googleapis.com over HTTP.

How it runs

Trigger: On a schedule (every day) (plus 1 other trigger).

  1. Get date delivery (Google Sheets): uses Google Sheets
  2. Start address (Edit Fields (Set)): sets 1 field: START ADDRESS
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Get addresses (Google Sheets): uses Google Sheets
  5. Get Lat and Lng of Start address (HTTP Request): calls maps.googleapis.com
  6. Get Lat and Lng (HTTP Request): calls maps.googleapis.com
  7. Group delivery (Code): runs custom JavaScript code
  8. Set vars (Edit Fields (Set)): sets 3 fields: START ADDRESS, START LAT, START LNG
  9. Update Lat and Lng (Google Sheets): update
  10. Merge: merges the data from its input branches

…plus 4 more steps. See the full node list below.

Services it uses

Google Sheets

HTTP calls to: maps.googleapis.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

This workflow automates the process of converting delivery addresses into geographic coordinates and optimizes delivery routes for each carrier using Google Maps. Finally, the workflow outputs an optimized circular route that starts and ends at the base…

Excerpt from Davide Boizza's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.