Table of Contents

Class PlacePrediction

Namespace
GoogleMapsApi.Entities.PlacesNew.Response
Assembly
GoogleMapsApi.dll

An autocomplete prediction for a specific place.

public sealed class PlacePrediction
Inheritance
PlacePrediction
Inherited Members

Properties

Place

Resource name of the predicted place (e.g. places/{placeId}).

[JsonPropertyName("place")]
public string? Place { get; set; }

Property Value

string

PlaceId

Place ID of the predicted place.

[JsonPropertyName("placeId")]
public string? PlaceId { get; set; }

Property Value

string

StructuredFormat

Prediction split into main and secondary text.

[JsonPropertyName("structuredFormat")]
public StructuredFormat? StructuredFormat { get; set; }

Property Value

StructuredFormat

Text

Full text of the prediction with match highlights.

[JsonPropertyName("text")]
public FormattableText? Text { get; set; }

Property Value

FormattableText

Types

Place types associated with the predicted place.

[JsonPropertyName("types")]
public List<string>? Types { get; set; }

Property Value

List<string>