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
PlaceId
Place ID of the predicted place.
[JsonPropertyName("placeId")]
public string? PlaceId { get; set; }
Property Value
StructuredFormat
Prediction split into main and secondary text.
[JsonPropertyName("structuredFormat")]
public StructuredFormat? StructuredFormat { get; set; }
Property Value
Text
Full text of the prediction with match highlights.
[JsonPropertyName("text")]
public FormattableText? Text { get; set; }
Property Value
Types
Place types associated with the predicted place.
[JsonPropertyName("types")]
public List<string>? Types { get; set; }