Table of Contents

Class GroundingChunkMaps

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

A Maps chunk is a piece of evidence that comes from Google Maps. It contains information about a place, such as its name, address, and reviews. This is used to provide the user with rich, location-based information.

public record GroundingChunkMaps : IEquatable<GroundingChunkMaps>
Inheritance
GroundingChunkMaps
Implements
Inherited Members

Properties

PlaceAnswerSources

The sources that were used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as URIs to flag content.

[JsonPropertyName("placeAnswerSources")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GroundingChunkMapsPlaceAnswerSources? PlaceAnswerSources { get; set; }

Property Value

GroundingChunkMapsPlaceAnswerSources

PlaceId

This Place's resource name, in places/{place_id} format. This can be used to look up the place in the Google Maps API.

[JsonPropertyName("placeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? PlaceId { get; set; }

Property Value

string

Route

Output only. Route information.

[JsonPropertyName("route")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GroundingChunkMapsRoute? Route { get; set; }

Property Value

GroundingChunkMapsRoute

Text

The text of the place answer.

[JsonPropertyName("text")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; set; }

Property Value

string

Title

The title of the place.

[JsonPropertyName("title")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Title { get; set; }

Property Value

string

Uri

The URI of the place.

[JsonPropertyName("uri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Uri { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GroundingChunkMaps object.

public static GroundingChunkMaps? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GroundingChunkMaps

The deserialized GroundingChunkMaps object, or null if deserialization fails.