google · Google AI Docs
Gemini API Grounding with Google Maps
Teaches how to implement Google Maps grounding within the Gemini generateContent API to provide models with real-world location data and spatial context.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Gemini API Grounding with Google Maps
Teaches how to implement Google Maps grounding within the Gemini generateContent API to provide models with real-world location data and spatial context.
When To Use
Use when you need to integrate real-time location information, place details, or geographic context into LLM responses to prevent hallucinations regarding physical locations.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/gemini-api-grounding-with-google-maps-workflow-guide.md | A guide explaining how to connect Gemini API generative capabilities with Google Maps data for location-aware functionality. | Questions about a guide explaining how to connect Gemini API generative capabilities with Google Maps data for location-aware functio... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-p.text | A Python code example demonstrating how to enable Google Maps grounding in a Gemini API generateContent request using the Google GenAI SDK. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to enable Google Maps grounding in a Gemini API generateContent request using... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-n.text | A Node.js code example demonstrating how to enable Google Maps grounding in a Gemini API generateContent request. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to enable Google Maps grounding in a Gemini API generateContent request. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-c.text | A curl command demonstrating how to call the Gemini API with the Google Maps tool enabled to perform grounded queries. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to call the Gemini API with the Google Maps tool enabled to perform grounded queries. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-p-2.text | A text example demonstrating a user prompt and tool configuration for using Google Maps grounding within the Gemini API. | Exact payloads, commands, or snippets shown in A text example demonstrating a user prompt and tool configuration for using Google Maps grounding within the Gemini API. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-p-3.text | A text example demonstrating a Gemini API request payload that uses the Google Maps tool to ground a query about restaurants near Times Square. | Exact payloads, commands, or snippets shown in A text example demonstrating a Gemini API request payload that uses the Google Maps tool to ground a query about rest... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-t.text | A text-based example demonstrating a Gemini API request using the Google Maps tool with specific latitude and longitude coordinates for location-based grounding. | Exact payloads, commands, or snippets shown in A text-based example demonstrating a Gemini API request using the Google Maps tool with specific latitude and longitu... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-r.text | A text representation of a Gemini API response containing grounding metadata and Google Maps place identifiers. | Exact payloads, commands, or snippets shown in A text representation of a Gemini API response containing grounding metadata and Google Maps place identifiers. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-p-4.text | A Python code example demonstrating how to enable the Google Maps tool within a Gemini API generateContent request to perform location-based grounding. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to enable the Google Maps tool within a Gemini API generateContent request to... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-n-2.text | A Node.js code example demonstrating how to enable the Google Maps tool within a Gemini API generateContent request to perform location-based grounding. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to enable the Google Maps tool within a Gemini API generateContent request t... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-c-2.text | A curl command demonstrating how to include the googleMaps tool in a generateContent request to the Gemini API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to include the googleMaps tool in a generateContent request to the Gemini API. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-p-5.text | A Python code example demonstrating how to use the Gemini API with Google Maps grounding to answer location-based queries. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Gemini API with Google Maps grounding to answer location-based que... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-n-3.text | A Node.js code example demonstrating how to use the Gemini API with Google Maps grounding to answer location-based queries. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the Gemini API with Google Maps grounding to answer location-based qu... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-c-3.text | A curl command demonstrating a POST request to the Gemini API using the Google Maps tool for grounding. | Exact payloads, commands, or snippets shown in A curl command demonstrating a POST request to the Gemini API using the Google Maps tool for grounding. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-p-6.text | A Python code example demonstrating how to use the Gemini API with Google Maps tools to ground model responses in real-world location data. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Gemini API with Google Maps tools to ground model responses in rea... |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-n-4.text | A Node.js code example demonstrating how to enable Google Maps grounding in a Gemini API generateContent request. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to enable Google Maps grounding in a Gemini API generateContent request. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding-c-4.text | A curl command demonstrating how to send a generateContent request to the Gemini API with Google Maps grounding enabled. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a generateContent request to the Gemini API with Google Maps grounding enabled. |
examples/gemini-api-grounding-with-google-maps-gemini-api-google-maps-grounding.text | A text-based example demonstrating how to implement Google Maps grounding within the Gemini API. | Exact payloads, commands, or snippets shown in A text-based example demonstrating how to implement Google Maps grounding within the Gemini API. |
What This Skill Covers
- Grounding with Google Maps connects the generative capabilities of Gemini with the rich, factual, and up-to-date data of Google Maps. This feature enables de...
- Main sections:
Get started,Python,JavaScript,REST,How Grounding with Google Maps works.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://ai.google.dev/gemini-api/docs/maps-grounding
