Google Maps
Search places, geocode addresses, get directions, and calculate distances using Google Maps Platform
The Google Maps integration connects your agents to Google Maps Platform APIs for searching places, geocoding addresses, getting directions, and calculating distances between locations.
Prerequisites
You need:
- Google Cloud API Key — A Google Cloud API key with the following APIs enabled:
- Places API (New)
- Geocoding API
- Directions API
- Distance Matrix API
To create an API key, go to the Google Cloud Console, create a new key, and enable the required APIs under APIs & Services > Library.
Setup
- Open your agent in Agent Studio
- In the Integrations panel, click Add Integration Config
- Select Google Maps from the integration list
- Give the config a display name (e.g., "Google Maps")
- Enter your API Key
- Save the agent revision
Using in Your Agent
- In an Agent Step, attach Google Maps tools from the tools panel
- Tools are referenced as
google_maps.places_search,google_maps.directions, etc.
Available Tools
| Tool | Description | Action Type |
|---|---|---|
places_search | Search for places (businesses, landmarks, addresses) by text query | ReadOnly |
place_details | Get detailed info about a place by its place ID (hours, reviews, contact) | ReadOnly |
geocode | Convert between addresses and coordinates (forward and reverse geocoding) | ReadOnly |
directions | Get step-by-step route directions between two locations | ReadOnly |
distance_matrix | Calculate travel distance and duration between multiple origins and destinations | ReadOnly |