Maps Experience agent tools (formerly Maps Grounding Lite) provides a Model Context Protocol (MCP) server and REST methods that let LLMs and AI agents query Google Maps places (including places along a route), routes, weather, air quality, and pollen data, and resolve location names or Google Maps URLs to place IDs.
Maps Experience agent tools: key facts
- Product: Maps Experience agent tools
- Also known as: Maps Grounding Lite, Maps Experience Agent Tools, Maps Grounding Essentials, Maps Grounding Pro
- Category: Places
- Platform: Web service (REST)
- Runs on: Server (backend code)
- Launch stage: GA
- Lifecycle: Active
- Overview: Maps Experience agent tools overview
Maps Experience agent tools: when to use it
Use Maps Experience agent tools when:
- You build an AI agent with an MCP-compatible framework (such as ADK or Gemini CLI) that needs places, routes, weather, air quality, or pollen data.
- You want direct control of each tool call (
search_places,search_along_route,compute_routes,lookup_weather,resolve_names,resolve_maps_urls). - You need to resolve batches of up to 20 place names or Google Maps URLs (
maps.app.goo.gl) into place IDs at no charge. - You want to render Places UI Kit elements for grounded
search_placesorsearch_along_routeresults at no extra charge usingcontentToken.
Don't use Maps Experience agent tools when:
- You build on Gemini API, Google AI Studio, or Gemini Enterprise Agent Platform and want Gemini to run Grounding with Google Maps automatically.
- You need step-by-step directions, route legs, or turn-by-turn navigation. Use Routes API instead.
- You need structured place fields or autocomplete directly in application code without an LLM summary. Use Places API (New) instead.
Maps Experience agent tools: setup
- Service to enable:
mapstools.googleapis.com - Authentication: API key, OAuth 2.0
- Prototyping key: Get a working, no-cost Maps Demo Key with a personal Google Account (daily quota limits apply; see eligibility and supported features). No Google Cloud project or billing account is required.
- Get started: Set up Maps Experience agent tools
- Reference: Maps Experience agent tools reference
- Pricing: Maps Experience agent tools usage and billing
- Policies: Maps Experience agent tools policies
- Release notes: Maps Experience agent tools release notes
Maps Experience agent tools: related products
- Often used with: Maps JavaScript API, Places SDK for Android, Places SDK for iOS, Places API (New), Routes API, Weather API, Air Quality API, Pollen API, Agentic UI toolkit
Maps Experience agent tools: common mistakes
- Problem: Any Pro option bills the request under the Maps Grounding Pro SKU ($14 vs. $7 per 1,000), and an LLM can set Pro options on its own:
include_extended_details,page_size>5,ROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMAL, >10intermediate_waypoints,POLLENor pastAIR_QUALITYinlookup_weather, and anysearch_along_routecall. Fix: Tell the model in your instructions when Pro options are appropriate, or never to use them. If your MCP client can restrict tools or arguments, blocksearch_along_routeand the Pro argument values, and monitor the Maps Grounding Pro SKU in your billing reports. See /maps/ai/maps-experience-agent-tools#control_pro_usage. - Problem: The
compute_routestool omits step-by-step directions, defaults toROUTING_PREFERENCE_TRAFFIC_UNAWARE, rejectsROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMALonWALKorBICYCLEwithINVALID_ARGUMENT, and rejectsintermediate_waypointsonTRANSIT. Fix: SetROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMALonly onDRIVEorTRANSITroutes, omitintermediate_waypointsonTRANSIT, and use the Routes API if you need turn-by-turn steps. See /maps/ai/maps-experience-agent-tools/compute-routes. - Problem:
ResolveNamesandResolveMapsUrlsreject batches over 20 items with400 INVALID_ARGUMENT, don't support categorical queries like"restaurants in New York", and return HTTP 200 with{}entries andfailedRequestswhen individual items fail. Fix: Send at most 20 specific place names or single-place Maps URLs per call, and inspectfailedRequestsby 0-based index instead of relying only on HTTP status. See /maps/ai/maps-experience-agent-tools/resolution-api. - Problem: A
contentTokenwaives Places UI Kit charges for only 10 minutes on supported elements under the same Cloud project (Maps JavaScript APIv=betain Preview, Places SDK for Android 6.1.0+, orGooglePlacesSwift11.4.0+). Invalid or expired tokens bill at standard rates without an error, and JSaddContentTokens()throws on a bare string. Fix: ReadcontentTokenfromstructuredContent(or top-level REST JSON) in code rather than LLM text, use credentials from the same Cloud project, pass[contentToken]toSettings.getInstance().addContentTokens()on JSv=beta, or passcontentTokenson each Android or iOS Places UI Kit request. See /maps/ai/agentic-data-visualization-token. - Problem: Showing grounded tool output without
googleMapsLinkssources, or sending Google Maps Content to an LLM that caches, stores, or trains on inputs, violates the Google Maps Platform Terms of Service. Fix: Render attributedgoogleMapsLinksright after the grounded output (viewable within one user interaction), and verify your model doesn't retain or train on input data. See /maps/ai/maps-experience-agent-tools/attribution.
What you can do with Maps Experience agent tools
See the guides linked below for each task, or compare across products in the Capabilities Explorer.
Maps Experience agent tools: Generative AI
- Return grounded place summaries, place IDs, and coordinates from a natural language query.
- Search for places along a travel route with detour times and distances from a natural language query.
- Calculate route distance and travel duration between locations for an AI agent.
- Return current and forecast weather, air quality, and pollen conditions for a location.
- Resolve batches of place names, addresses, or Google Maps URLs to place IDs.
- Return the URI to save a batch of resolved places as a list in Google Maps.
Maps Experience agent tools: Places UI Kit
- Display place data UI elements with a grounding content token from an AI agent response. Note: Only
search_placesandsearch_along_routefrom Maps Experience agent tools (mapstools.googleapis.com) issuecontentToken(not Grounding with Google Maps). Tokens waive Places UI Kit charges for 10 minutes on supported components under the same Cloud project; invalid or expired tokens bill at standard rates without an error.