Google Maps
Overview
The Google Maps Node allows your workflow to connect with Google Maps services and retrieve various location-based data or features. This can include operations such as finding routes, geocoding addresses, fetching nearby places, or analyzing map data.
It serves as a convenient bridge between your workflow and Google Maps functionalities without requiring direct API setup or code.
Description
Access Google Maps features.
The Google Maps Node enables you to use features of Google Maps within your workflow. You can select a specific function through the option parameter.
Geocoding
Convert addresses to coordinates and vice versa.
Directions & Distance
Calculate routes, travel time, and distance.
Once executed, this node interactions with Google Maps and returns structured results. It’s ideal for automating tasks that involve location lookup, distance calculation, travel planning, or region-based analysis.
Input Parameters
The Google Maps Node accepts the following input parameters:
optionstringRequired"geocode"geocode: Convert address to coordinates.reverse-geocode: Convert coordinates to an address.get-directions: Retrieve route details.get-distance: Calculate travel distance and duration.nearby-search: Find nearby locations.
Output Parameters
The node returns key details about the operation.
processingCountnumberOptional1processingTimestringOptional"2025-10-27T11:22:00Z"processingIdstringOptional"gmaps-req-98213"resultobjectOptionalOutput Type
Output Type: JSON
The output is returned as structured text in JSON format, which may include location details, travel times, or place information depending on the option used.
Example Usage
Example 1: Get Coordinates (Geocode)
Convert an address to latitude/longitude.
{ "option": "geocode", "address": "1600 Amphitheatre Parkway, Mountain View, CA"}
{ "processingCount": 1, "processingId": "gmaps-req-98213", "result": { "lat": 37.422, "lng": -122.084 }}
Example 2: Calculate Distance
Find distance between two points.
{ "option": "get-distance", "origin": "New York, NY", "destination": "Boston, MA"}
{ "processingCount": 1, "result": { "distance": "215 mi", "duration": "3 hours 50 mins" }}
How to Use in a No-Code Workflow
Add the Node
Drag and drop the Google Maps Node into your workflow.
Set Option
Specify the option (e.g., "geocode", "get-distance").
Provide Data
Map required inputs (like addresses or coordinates) from previous nodes.
Use Results
Pass the computed map information to another node (e.g., save to database).
Best Practices
- Double-check the
optionvalue matches your intent. - Ensure you have necessary API permissions if using a custom key.
Do / Don’t
- ✔️ Use descriptive node names (e.g., "Get Office Distance").
- ✔️ Use the
processingIdfor troubleshooting. - ✔️ Validate addresses before sending them to the node.
- ❌ Don’t send empty location data.
- ❌ Don’t use unsupported option strings.
Common Errors
Missing optionErrorOptionalInvalid option valueErrorOptionalRequest failedErrorOptionalExample Workflow Integration
Use Case: Calculate Delivery Distance
Estimate delivery time and cost based on distance.
- Order Placed: Trigger workflow when a new order comes in.
- Google Maps: Use
get-distancewith store and customer addresses. - Update Database: Save the estimated delivery time and distance.
Workflow Data Flow:
{{order.customerAddress}} → {{googleMaps.destination}}
{{googleMaps.result.distance}} → {{db.update.distance}}
