Interface GoogleMaps

Tool to retrieve knowledge from Google Maps.

interface GoogleMaps {
    authConfig?: AuthConfig;
    enableWidget?: boolean;
    groundingTypes?: GoogleMapsGroundingTypes;
}

Properties

authConfig?: AuthConfig

The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API.

enableWidget?: boolean

Deprecated. The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. Optional. Whether to return a widget context token in the GroundingMetadata of the response.

groundingTypes?: GoogleMapsGroundingTypes

Optional. Specifies the types of Google Maps grounding to enable. Defaults to places when unset, and to places and routing for Gemini 4 and later models. When set, only the listed types are enabled; for example, setting only places disables routing. This field is not supported in Gemini API.