Google Maps API

Give your agents access to Google Maps API. Bring your own Google Maps key, or skip the signup and pay per call from your Composio balance with Composio Instant.

Google Maps logoGoogle Maps
Instant

Google Maps is a leading mapping and geolocation service for finding locations, routes, and businesses worldwide. It helps users access real-time navigation, geocoding, and mapping data for seamless location-based experiences.

20 Tools
COMPOSIO INSTANT

What is Composio Instant?

Composio Instant lets your agent use paid APIs like Google Maps without a separate account or API key for each one. New accounts start with $2 of free credit.

No Google Maps account or key

Your agent calls Google Maps through Composio, so there is nothing to sign up for, store, or rotate.

Pay per call, at cost

$0.032 per request; selected fields may increase the price to $0.035, paid from your Composio balance with zero markup.

Works in any agent

Claude, ChatGPT, Cursor, and other MCP clients, or your own code with the Composio SDK.

Works with your apps

Use Google Maps with Gmail, Slack, Google Sheets, and 1,700+ other apps you connect.

AI ASSISTANTS

Connect the Google Maps API to your AI assistant

Use Google Maps from the AI assistant you already work in. Connect Composio once, then paste the prompt.

  1. 1

    Open the Connectors menu

    Use the button to open Claude's Add connector dialog with Composio filled in. Or click + in the message box, then Connectors, Add connector and Add custom connector.
    Add Composio to Claude
  2. 2

    Add the Composio MCP server

    Name it Composio, paste the MCP server URL and click Add.
    https://connect.composio.dev/mcp
  3. 3

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  4. 4

    Paste the prompt

    Start a new chat and paste the prompt. Claude runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio's plugin page in ChatGPT and click Install. Sign in to ChatGPT first if it asks.
    Install in ChatGPT
  2. 2

    Authorize in your browser

    Connect the plugin, then sign in to Composio to approve the connection.
  3. 3

    Turn on Composio in your chat

    In a new chat, click +, then More, and select Composio.
  4. 4

    Paste the prompt

    Paste the prompt into that chat. ChatGPT runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio in the Cursor marketplace, click Install Composio Plugin for Cursor and approve the connection in your browser.
    Install in Cursor
  2. 2

    Paste the prompt

    Open the Agent chat and paste the prompt. Cursor runs the call on Composio Instant.
  1. 1

    Add the Composio plugin

    Open Composio's listing on x.ai and click Add to Grok Bot. When Grok Bot opens the plugin, click Add.
    Add to Grok Bot
  2. 2

    Authenticate

    Go to Installed, open Composio and click Authenticate. Sign in to Composio and click Authorize.
  3. 3

    Paste the prompt

    Paste the prompt into your bot's chat. Grok Bot runs the call on Composio Instant.
  1. 1

    Paste the setup prompt

    Copy this into your Hermes chat. Hermes adds the Composio MCP server for you.
    Set up Composio from composio.dev/hermes
  2. 2

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  3. 3

    Paste the prompt

    Start a new chat and paste the prompt. Hermes runs the call on Composio Instant.
ClaudeNew chat

Paste this prompt

Use Google Maps through Composio Instant to search for "coffee shops in New York". Return the name and address for up to three results.

What success looks like

GOOGLE_MAPS_TEXT_SEARCH

Your assistant runs Google Maps and replies with the names and addresses of up to three coffee shops in New York.

Runs on Composio Instant
SDK

Use the Google Maps API in your code

Call Google Maps from your own agent with the Composio SDK. Four steps and one tool call.

  1. 1

    Set up Composio

    Turn on Instant Toolkits in your project settings and check your prepaid balance in Billing. Then set your API key.
    export COMPOSIO_API_KEY="your_composio_api_key"
  2. 2

    Install the SDK

    The Python SDK needs Python 3.11 through 3.15.
    pip install composio
  3. 3

    Run the call

    Create a session that keeps Instant to this toolkit and reports the charge, then run the tool on the Instant account.
    GOOGLE_MAPS_TEXT_SEARCH
  4. 4

    Read the response

    When the call runs on Instant, the response includes its charge: the amount as an exact USD decimal string, the currency and charged_by.
agent.py
from composio import Composio

composio = Composio()

session = composio.sessions.create(
    user_id="user_123",
    toolkits=["google_maps"],
    instant={
        "toolkits": {"enable": ["google_maps"]},
        "return_instant_charge": True,
    },
)

result = session.execute(
    "GOOGLE_MAPS_TEXT_SEARCH",
    arguments={
        "textQuery": "coffee shops in New York",
        "maxResultCount": 3,
    },
    account="instant_account",
)
print(result)
print("Instant charge:", result.instant_charge)
TOOLS

Available Google Maps API tools

17 Google Maps tools run on Instant, priced per call with no Google Maps key. Tools marked Your key need your own Google Maps account.

ActionTool slugWhat it doesAvailability
Search PlacesGOOGLE_MAPS_TEXT_SEARCHFind places on Google Maps from a text query.
Instant$0.032 per request; selected fields may increase the price to $0.035
Search NearbyGOOGLE_MAPS_NEARBY_SEARCHFind places within a circular area and filter by place type.
Instant$0.032 per request; selected fields may increase the price to $0.035
Plan RouteGOOGLE_MAPS_GET_ROUTECalculate one or more routes between two locations.
Instant$0.010 per request; routing options may change the price to $0.005 or $0.015
Geocode LocationGOOGLE_MAPS_GEOCODING_APIConvert an address or Place ID to coordinates, or coordinates to an address.
Instant$0.005 per supported geocoding request
Get Place DetailsGOOGLE_MAPS_GET_PLACE_DETAILSRetrieve details for a place by its Place ID or resource name.
Instant$0.017 per request; selected fields may increase the price to $0.020
Autocomplete Place PredictionsGOOGLE_MAPS_AUTOCOMPLETEReturns place and query predictions for text input.
Instant$0.00283 per request
Compute Route MatrixGOOGLE_MAPS_COMPUTE_ROUTE_MATRIXCalculates travel distance and duration matrices between multiple origins and destinations using the Routes API, with various travel modes and OAuth2 support; some connections limit requests to 100 origin-destination pairs.
Instant$0.010 per origin-destination pair ($0.005–$0.015 by options); max 100 pairs.
Create Tiles SessionGOOGLE_MAPS_TILES_CREATE_SESSIONCreates a session token for 2D map tiles or Street View imagery, reusable for subsequent tile requests within its validity window.
Instant$0 per map-tile session creation; tile requests priced separately
Geocode Address With QueryGOOGLE_MAPS_GEOCODE_ADDRESS_WITH_QUERYTool to map addresses to geographic coordinates with query parameter.
Instant$0.005 per address geocoding request
Geocode Place by IDGOOGLE_MAPS_GEOCODE_PLACETool to perform geocode lookup using a place identifier to retrieve address and coordinates.
Instant$0.005 per place geocoding request
Geolocate DeviceGOOGLE_MAPS_GEOLOCATEEstimate a device's geographic location from cell tower and WiFi observations.
Instant$0.005 per device geolocation request; IP fallback unavailable
Get 2D Map TileGOOGLE_MAPS_GET2D_TILETool to retrieve a 2D map tile image at specified coordinates for building custom map visualizations.
Instant$0.0006 per returned 2D map tile
Get 3D Tiles RootGOOGLE_MAPS_GET3D_TILES_ROOTTool to retrieve the 3D Tiles tileset root configuration for photorealistic 3D map rendering.
Instant$0.006 per 3D root request
Get Place PhotoGOOGLE_MAPS_PLACE_PHOTORetrieves high quality photographic content from the Google Maps Places database.
Instant$0.007 per New API photo request; discovery calls priced separately
Get Time ZoneGOOGLE_MAPS_GET_TIME_ZONERetrieves time zone information for a specific geographic location and timestamp.
Instant$0.005 per time zone request
Lookup Aerial VideoGOOGLE_MAPS_LOOKUP_AERIAL_VIDEOTool to look up an aerial view video by address or video ID.
Instant$0.016 per ready aerial-video lookup; processing status checks are free
Reverse Geocode LocationGOOGLE_MAPS_GEOCODE_LOCATIONTool to convert geographic coordinates (latitude and longitude) to human-readable addresses using reverse geocoding.
Instant$0.005 per reverse geocoding request
Look Up DestinationGOOGLE_MAPS_GEOCODE_DESTINATIONSFind a destination and its places, landmarks, entrances, and navigation points.Your key
Embed MapGOOGLE_MAPS_MAPS_EMBED_APIGenerate a Google Maps Embed URL and iframe code for a place or route.Your key

Instant prices are Google Maps's list prices with 0% markup, paid from your Composio balance and updated every hour. Instant calls also count toward your plan's tool calls. See all plans on the pricing page.

USE CASES

Google Maps API use cases and example prompts

Copy a prompt into your agent. Each one uses Google Maps with apps you connect through Composio.

  • Map coffee shops for a market brief

    Use Google Maps to find coffee shops near each location in my Market Areas sheet in Google Sheets. Add the places you find to the sheet, grouped by area. Post a summary in Slack's #market-research channel for our coffee shop team.

    Apps used: Google Maps, Google Sheets, Slack

  • Plan hardware store site visits

    Use Google Maps to calculate routes from our regional office to each hardware store in my Site Visits sheet in Google Sheets. Add the route results to the sheet, then write a visit brief in Google Docs for our hardware store team.

    Apps used: Google Maps, Google Sheets, Google Docs

  • Research coffee shop prospects

    Acme sells equipment to coffee shops. Use Google Maps to find coffee shops near the service area in the Acme company record in HubSpot, and add the places you find to a note on that record. Draft a Gmail outreach template for my sales team to review.

    Apps used: Google Maps, HubSpot, Gmail

  • Build a coworking area guide

    Use Google Maps to find restaurants and other places near each of my coworking spaces. Create a page in my Coworking Operations workspace in Notion with the results grouped by location, for our coworking team to share with members.

    Apps used: Google Maps, Notion

TROUBLESHOOTING

Google Maps API troubleshooting

Still stuck? The Instant tools docs cover limits, charges and session settings.

Start with Google Maps.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Maps tool your agent needs.Free to start.

Start building