Skip to main content

Google Maps Node

The Google Maps node provides integration with Google Maps Platform in SkyStudio workflows. You can automate operations such as address-to-coordinate conversion, distance calculation, nearby place search, directions, and static map image generation.


Connection Setup and Management

To use the Google Maps node, a Google Maps API key is required.

Getting an API Key

  1. Go to Google Cloud Console.
  2. Create a project or select an existing project.
  3. Enable the following APIs from APIs & Services → Library:
    • Maps JavaScript API
    • Geocoding API
    • Places API
    • Directions API
    • Distance Matrix API
    • Maps Static API
  4. Go to APIs & Services → Credentials and select Create Credentials → API Key.
  5. Copy the generated API key.

Adding the Connection to SkyStudio

  1. Go to Application Connections from the left menu in SkyStudio.
  2. Click the Add New Connection button.
  3. Select Google Maps as the provider.
  4. Paste your API key into the relevant field and save it.

Assigning the Connection to the Node

After adding the Google Maps node to the canvas, select the connection you created from the Application Connections dropdown in the right panel.

Note: The same connection is used for every operation. You can define multiple connections with different API keys for different projects.


Operations

The Google Maps node provides 9 operations:

OperationCategoryDescription
Address → CoordinatesFeaturedConverts a text address into latitude/longitude coordinates
Distance & DurationFeaturedCalculates the distance and travel time between two points
Nearby PlacesFeaturedSearches for places around specific coordinates
Search PlaceFeaturedSearches for places and addresses using a text query
Maps AI AssistantFeaturedQueries map data using natural language
Coordinates → AddressStandardConverts latitude/longitude coordinates into a text address
DirectionsStandardProvides step-by-step directions between two points
Place DetailsStandardRetrieves detailed information about a place using Place ID
Map ImageStandardReturns the specified location as a static map image

Address → Coordinates

Converts a text address into latitude and longitude coordinate values. This operation is also known as geocoding.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
AddressYesAddress text to convert into coordinates, such as Taksim Square, Istanbul
LanguageNoLanguage code for the returned results, such as tr or en

Example Output

{
"lat": 41.0369,
"lng": 28.9850,
"formatted_address": "Taksim Square, Beyoğlu/Istanbul, Türkiye"
}

Distance & Duration

Calculates the distance and estimated travel time from one or more origins to one or more destinations. This is based on the Distance Matrix operation.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
OriginsYesOrigin point or points, as an address or in latitude,longitude format
DestinationsYesDestination point or points, as an address or in latitude,longitude format
Travel ModeNoTransportation mode: driving, walking, bicycling, or transit
LanguageNoLanguage code for the returned results

Origins / Destinations Format

Single point:

Kadıköy, Istanbul

Multiple points:

Kadıköy, Istanbul|Beşiktaş, Istanbul

Nearby Places

Lists places within a specified radius around the given coordinate point. Results can be filtered by category, such as restaurant, pharmacy, or ATM.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
LatitudeYesLatitude value of the center point, such as 41.0082
LongitudeYesLongitude value of the center point, such as 28.9784
Radius (meters)YesSearch radius in meters, maximum 50000
Place TypeNoPlace category, such as restaurant, pharmacy, atm, or hospital
KeywordNoKeyword that filters results, such as coffee or pizza
LanguageNoLanguage code for the returned results

Place Type Examples

restaurant, cafe, hospital, pharmacy, bank, atm, gas_station, hotel, supermarket, school, park


Search Place

Searches for places and addresses in Google Maps using a text-based search query. It is used in place search scenarios based on user input.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
Search QueryYesSearch text, such as Istanbul Airport or Antalya hotels
LanguageNoLanguage code for the returned results

Example Output

{
"results": [
{
"place_id": "ChIJLU7jZClu0xQRIOd2kzuSCZU",
"name": "Istanbul Airport",
"formatted_address": "Tayakadın, 34283 Arnavutköy/Istanbul",
"geometry": {
"location": {
"lat": 41.2608,
"lng": 28.7418
}
},
"rating": 4.3
}
]
}

Maps AI Assistant

Queries Google Maps data using natural language. It performs complex search and filtering operations through a simple question format.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
QueryYesNatural language query
System PromptNoSystem instruction that customizes the AI assistant’s behavior

Usage Example

Query: "Find the 3 pharmacies closest to Kadıköy"

System Prompt: "List only places that are open 24 hours and provide their addresses in Turkish."


Coordinates → Address

Converts latitude/longitude coordinates into a readable text address. This is the reverse geocoding operation.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
LatitudeYesLatitude value, such as 41.0082
LongitudeYesLongitude value, such as 28.9784
LanguageNoLanguage code for the returned results

Example Output

{
"formatted_address": "Sultanahmet, Fatih/Istanbul 34122, Türkiye",
"address_components": [
{
"long_name": "Sultanahmet",
"types": ["neighborhood"]
},
{
"long_name": "Fatih",
"types": ["sublocality"]
},
{
"long_name": "Istanbul",
"types": ["locality"]
}
]
}

Directions

Generates step-by-step directions between two points. Waypoints can be added, and different travel modes are supported.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
OriginYesStarting point, as an address or latitude,longitude
DestinationYesDestination point, as an address or latitude,longitude
WaypointsNoIntermediate stops on the route, separated by pipe |
Travel ModeNoTransportation mode: driving, walking, bicycling, or transit
LanguageNoLanguage code for the returned instructions

Using Waypoints

Üsküdar, Istanbul|Bostancı, Istanbul

Each waypoint creates an intermediate stop, and the route passes through all points in order.


Place Details

Retrieves detailed information about a place using its Place ID, including phone number, opening hours, website, photos, reviews, and more.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
Place IDYesGoogle Maps Place ID of the place, such as ChIJLU7jZClu0xQRIOd2kzuSCZU
FieldsNoFields to retrieve, separated by commas, such as name,rating,opening_hours,formatted_phone_number
LanguageNoLanguage code for the returned results

How to Find the Place ID

The place_id field from the output of the Search Place operation can be used directly. In the Google Maps web interface, you can also right-click a place to copy its Place ID.

Field Examples

name, rating, formatted_address, formatted_phone_number, website, opening_hours, photos, reviews, price_level, geometry


Map Image

Creates a static map image, usually PNG, centered on the specified location. It is used to add maps to workflow outputs or reports.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Maps API connection to use
CenterYesCenter point of the map, as an address or latitude,longitude
Zoom (1-20)NoZoom level. 1 = world, 10 = city, 15 = street, 20 = building. Default: 13
Width (px)NoImage width in pixels. Default: 600
Height (px)NoImage height in pixels. Default: 400
Map TypeNoMap type: roadmap, satellite, terrain, or hybrid
MarkersNoMarkers to add to the map, as addresses or latitude,longitude

Zoom Guide

ValueView
1-3Continent / World
4-6Country
7-10City
11-13District
14-16Street
17-20Building / Detail

Quick Start Examples

Example 1: Delivery Address Verification

A workflow that converts the address entered by the user into coordinates and displays it on a map:

Text Input → Address → Coordinates → Map Image → Text Output

Address → Coordinates settings:

  • Address: {{input.text}}
  • Language: tr

Map Image settings:

  • Center: {{geocode.lat}},{{geocode.lng}}
  • Zoom: 15
  • Map Type: roadmap
  • Markers: {{geocode.lat}},{{geocode.lng}}

Example 2: Nearby Pharmacy Finder

A chatbot that lists nearby pharmacies based on the user’s location:

Text Input (location) → Address → Coordinates → Nearby Places → LLM (list) → Text Output

Nearby Places settings:

  • Latitude: {{geocode.lat}}
  • Longitude: {{geocode.lng}}
  • Radius (meters): 1000
  • Place Type: pharmacy
  • Language: tr

Example 3: Field Team Directions

A workflow that calculates a field team’s route to a customer address:

HTTP Call (get address from CRM) → Directions → LLM (summarize) → Slack Message

Directions settings:

  • Origin: {{crm.depot_address}}
  • Destination: {{crm.customer_address}}
  • Travel Mode: driving
  • Language: tr

Example 4: Natural Language Map Assistant

A map chatbot that answers user questions in natural language:

Text Input → Maps AI Assistant → Text Output

Maps AI Assistant settings:

  • Query: {{input.text}}
  • System Prompt: "Respond in Turkish. Always include address and distance information."

Common Errors

ErrorPossible CauseSolution
REQUEST_DENIEDAPI key is invalid or missing permissionsCheck the API key and verify that the required APIs are enabled in Cloud Console
ZERO_RESULTSAddress or place was not foundMake the search query or address more specific
OVER_QUERY_LIMITAPI quota exceededIncrease quota limits in Google Cloud Console or reduce request frequency
INVALID_REQUESTRequired parameter is missingCheck that Origin/Destination or Latitude/Longitude fields are filled
NOT_FOUNDPlace ID was not foundVerify that the Place ID is current and valid using Search Place
MAX_WAYPOINTS_EXCEEDEDToo many waypointsReduce the number of waypoints to 8 or fewer

Notes

  • ISO 639-1 language codes are used for the Language field: tr for Turkish, en for English, and de for German.
  • Radius in Nearby Places can be a maximum of 50,000 meters; larger values are automatically clipped.
  • The Map Image operation may return PNG binary directly instead of an image URL. It can be saved in the workflow using a File Output node.
  • Google Maps API uses a per-request pricing model. For high-volume workflows, consider caching results to optimize cost.
  • Place ID may change over time. Instead of long-term storage, it is recommended to get the current ID each time using Search Place.