Grounding for Google Maps is now available in the Gemini API

Grounding for Google Maps is now available in the Gemini API

Improve model response with grounding data

Developers can use Grounding with Google Maps to create more intuitive and useful experiences across travel, real estate, retail and logistics. The model automatically detects when a query has geographic context and uses Google Maps data to provide a grounded answer. Google Maps uses data from places and other related content, such as user reviews, as sources to help generate the answer. You can specify latitude and longitude coordinates to localize search results to specific geographic locations.

Here are a few ways you can use this:

  • Detailed travel planning: Go beyond a simple list of places. A travel app can now generate a full day’s plan, complete with distance, travel time and local details. A user can ask, “Plan a day in San Francisco for me. I want to see the Golden Gate Bridge, visit a museum, and have a nice dinner,” and receive a complete, actionable itinerary that includes up-to-date work and vacation times.
  • Hyperlocal personal recommendations: Offer tailored recommendations based on your user’s preferences and the location you designate. A real estate app can help a family find rental listings in kid-friendly neighborhoods by identifying nearby playgrounds, schools, and parks.
  • Local place-based responses: Answer detailed questions about a specific location by pulling insights from sources like user reviews and other Maps data. A query like “Does the cafe on the corner of 1st and Main have outdoor seating?” can now receive a Maps grounded response.

Combine grounding for map and search

For the most powerful and contextually aware applications, you can enable both grounding with Google Maps and grounding with Google Search in the same request.

  • Google Maps provides grounding with structured, factual data such as addresses, hours and user ratings.
  • Google search provides descriptive, timely context from around the web, such as event schedules, news and articles.

For example, when asked about “live music on Beale Street,” a combination of tools allows the model to use Maps data for a venue’s opening times and search data to find the specific start times of evening shows. Internal evaluations show that using both tools together results in a significant improvement in response quality compared to using either tool alone.

Start building today

Grounding with Google Maps is generally available now. The tool is supported by our latest models, giving you the flexibility to choose the right balance between performance and cost for your application (see tool pricing).

You can start building with Grounding on Google Maps today: check out the documentation to learn more or remix the demo app in Google AI Studio. You can also explore grounding with Google Search and Maps in the Gemini API Cookbook.

Leave a Reply

Your email address will not be published. Required fields are marked *