You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Discussion
Implement new tools to use Grounding with Google Maps, similar to how Grounding with Google Search works.
### Testing
Integration tests.
Unit tests.
Node standalone app.
Updated Quickstart React-based app (not part of this PR).
### API Changes
- Grounding with Google Maps support, see internal doc: go/fal-maps-grounding-api
- TemplateToolConfig, see internal doc: go/firebase-ai-server-prompt-template
Important: If using Grounding with Google Maps, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Maps".
16
+
17
+
<b>Signature:</b>
18
+
19
+
```typescript
20
+
exportinterfaceGoogleMapsGroundingChunk
21
+
```
22
+
23
+
## Properties
24
+
25
+
| Property | Type | Description |
26
+
| --- | --- | --- |
27
+
| [placeId](./ai.googlemapsgroundingchunk.md#googlemapsgroundingchunkplaceid) | string | ThisPlace'sresourcename, in <code>places/{place_id}</code>format. ThiscanbeusedtolookuptheplaceintheGoogleMapsAPI. |
A tool that allows a Gemini model to connect to Google Maps to access and incorporate location-based information into its responses.
14
+
15
+
Important: If using Grounding with Google Maps, you are required to comply with the "Grounding with Google Maps" usage requirements for your chosen API provider: [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-maps) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms).
16
+
17
+
<b>Signature:</b>
18
+
19
+
```typescript
20
+
exportinterfaceGoogleMapsTool
21
+
```
22
+
23
+
## Properties
24
+
25
+
| Property | Type | Description |
26
+
| --- | --- | --- |
27
+
| [googleMaps](./ai.googlemapstool.md#googlemapstoolgooglemaps) | [GoogleMaps](./ai.googlemaps.md#googlemaps_interface) | SpecifiestheGoogleMapsconfiguration.<!-- -->Whenusingthisfeature, youarerequiredtocomplywiththe "GroundingwithGoogleMaps" usagerequirementsforyourchosenAPIprovider: [GeminiDeveloperAPI](https://ai.google.dev/gemini-api/terms#grounding-with-google-maps) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms). |
28
+
29
+
## GoogleMapsTool.googleMaps
30
+
31
+
SpecifiestheGoogleMapsconfiguration.
32
+
33
+
Whenusingthisfeature, youarerequiredtocomplywiththe "GroundingwithGoogleMaps" usagerequirementsforyourchosenAPIprovider: [GeminiDeveloperAPI](https://ai.google.dev/gemini-api/terms#grounding-with-google-maps) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms).
Currently, only Grounding with Google Search is supported (see [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface)<!---->).
15
+
Currently, only Grounding with Google Search and Grounding with Google Maps are supported (see [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface) and [GoogleMapsTool](./ai.googlemapstool.md#googlemapstool_interface)<!---->, respectively).
16
16
17
17
Important: If using Grounding with Google Search, you are required to comply with the "Grounding with Google Search" usage requirements for your chosen API provider: [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms).
18
18
19
+
Important: If using Grounding with Google Maps, you are required to comply with the "Grounding with Google Maps" usage requirements for your chosen API provider: [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-maps) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms).
0 commit comments