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 location.
This workflow is particularly useful for:
It enables faster route planning, improves delivery efficiency, and provides a low-code automation solution that integrates directly with existing operational spreadsheets.
The workflow automatically converts delivery addresses into precise GPS coordinates using Google Maps APIs, eliminating manual data entry and reducing human errors.
By calculating the most efficient delivery order, the workflow helps drivers reduce travel time, fuel consumption, and operational costs.
All delivery data is managed directly inside Google Sheets, making the system easy to use for logistics teams without requiring additional software.
Deliveries are automatically grouped by carrier, allowing each driver or logistics operator to receive a dedicated optimized route.
The workflow dynamically processes only the deliveries scheduled for the current day, ensuring routes are always updated and relevant.
The solution can easily scale to handle larger delivery volumes and can be adapted for different logistics operations, territories, or business models.
Optimized routes reduce unnecessary mileage, helping companies lower fuel expenses, vehicle wear, and delivery times.
The workflow uses Google Routes API for accurate driving distances and includes fallback logic to ensure continuity even if API responses fail.
Once configured, the entire process runs automatically with minimal manual intervention, improving productivity and operational reliability.
The workflow can be customized to support:
Manual trigger
The workflow starts manually by clicking "Execute workflow".
Fetch today’s deliveries
DATE DELIVERY equals today’s date.Geocode each delivery address
LANG and LONG columns.DONE = "x" to avoid reprocessing.Get start address location
START ADDRESS, START LAT, START LNG.Filter already processed deliveries
DONE = "x".Group deliveries by carrier
NAME CARRIER.Optimize route for each carrier
Return optimized route
Google Sheets setup
row_number, NAME CARRIER, DATE DELIVERY, ADDRESS, LANG, LONG, DONE.documentId from the sheet’s URL.Google Sheets OAuth2 credentials
Google Maps API credentials
keyUpdate workflow configuration
Get date delivery, Update Lat and Lng, Get addresses), replace the documentId with your own sheet ID.Foglio1 or gid=0) matches.Set start address
n8n-nodes-base.set), edit the START ADDRESS assignment to your warehouse/starting location.Adjust wait time
Run the workflow
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.
Contact me for consulting and support or add me on Linkedin.