Class GroundingChunkMaps
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
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
Route
Output only. Route information.
[JsonPropertyName("route")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GroundingChunkMapsRoute? Route { get; set; }
Property Value
Text
The text of the place answer.
[JsonPropertyName("text")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; set; }
Property Value
Title
The title of the place.
[JsonPropertyName("title")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Title { get; set; }
Property Value
Uri
The URI of the place.
[JsonPropertyName("uri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Uri { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a GroundingChunkMaps object.
public static GroundingChunkMaps? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- GroundingChunkMaps
The deserialized GroundingChunkMaps object, or null if deserialization fails.