Back to library
AI
tutorial

Use Google Maps Grounding for Precise Local Planning

Enable Maps grounding to generate accurate, location-based itineraries and business lists.

Use Gemini's built-in Google Maps tool to find specific places, get directions, and verify local context instead of just relying on the model's training data.

Google Gemini

The Scenario

You are organizing an off-site team dinner in an unfamiliar city and need a list of vetted restaurants near your hotel that are open late.

Before & after

The old way

Manually searching for restaurants, checking opening hours on Maps, and copy-pasting addresses into a list takes 15–20 minutes.

With AI

With Gemini's Maps grounding, the AI instantly pulls real-time business names, addresses, and route details. This reduces the process to 1–2 minutes.

The Prompt

I am planning a business dinner in [CITY]. Find 3 highly-rated [CUISINE] restaurants near [STREET/AREA] that are open after 8 PM. Provide their addresses and a brief summary of why they fit a professional setting.

Leverage the specific Google Maps grounding tool via the Gemini API or Apps to build location-aware responses that are factually accurate regarding the physical world.

Source

Release notes  |  Gemini API  |  Google AI for Developers
"provide rich local context... Planning travel itineraries with multiple stops - Finding local businesses based on user criteria"