What is your goal?
Iβm building a daily delivery route briefing scenario.
The scenario searches paid delivery orders in Google Sheets, creates a daily route summary, builds a Google Maps Directions link, and sends an internal email / WhatsApp message with:
- the Google Maps route link
- departure address
- delivery stops
- final destination
- estimated delivery windows
Scenario structure:
Google Sheets β Search Rows
β Tools β Set multiple variables
β Tools β Text Aggregator for route stops / waypoints
β Tools β Set multiple variables
β Email / WhatsApp internal message
Route logic:
Origin:
Frazione Campanella 7, Castello di Annone
Final destination:
Enoteca Assetati, Via Cavour 83/A, Asti
Waypoints:
Dynamic delivery addresses from Google Sheets rows, aggregated with a Text Aggregator.
Example waypoint:
via test 9, Calamandrana
I need to generate a valid Google Maps Directions URL that works when clicked from Outlook/email or WhatsApp.
What is the problem & what have you tried?
The internal email body is now working and the route briefing text is readable.
The problem is the Google Maps route link.
The current link structure is:
Google Maps Campanella 7, Castello di Annone&destination=Enoteca Assetati, Via Cavour 83/A, Asti&waypoints=via test 9, Calamandrana&travelmode=driving
When I click the link from Outlook/email, Google Maps does not correctly understand the origin / waypoints. It seems to break the address because of spaces, commas or special characters.
I think I need to encode the URL parts correctly, but Iβm not sure what the best Make formula is.
I tried building the link inside Tools β Set multiple variables and using the Text Aggregator output as waypoints.
What I need to understand:
- Should I apply encodeURL() to each address separately?
- Should I encode the full URL or only origin, destination and waypoints?
- What separator should I use in the Text Aggregator for multiple waypoints?
- For Google Maps multiple waypoints, should the separator be β|β or encoded as β%7Cβ?
- What exact Make formula should I use to generate the final google_maps_route_link variable?
Error messages or input/output bundles
There is no Make error message. The scenario runs successfully, but the Google Maps link opens incorrectly.
Current output example:
Google Maps Campanella 7, Castello di Annone&destination=Enoteca Assetati, Via Cavour 83/A, Asti&waypoints=via test 9, Calamandrana&travelmode=driving
Expected encoded result should be similar to:
Current dynamic fields:
Origin fixed text:
Frazione Campanella 7, Castello di Annone
Destination fixed text:
Enoteca Assetati, Via Cavour 83/A, Asti
Waypoint source:
Text Aggregator output from Google Sheets rows
Example Text Aggregator output:
via test 9, Calamandrana
Question:
What is the correct Make formula to create the google_maps_route_link variable?
Create public scenario page
I can provide a public scenario page if needed, but I would prefer to understand the correct URL encoding formula first.
