Class AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction
Prediction results for a Query Autocomplete prediction.
Implements
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction : IMessage<AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction>, IEquatable<AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction>, IDeepCloneable<AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction>, IBufferMessage, IMessage
Constructors
QueryPrediction()
Declaration
public QueryPrediction()
QueryPrediction(QueryPrediction)
Declaration
public QueryPrediction(AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction other)
Parameters
Type | Name | Description |
---|---|---|
AutocompletePlacesResponse.Types.Suggestion.Types.QueryPrediction | other |
Properties
StructuredFormat
A breakdown of the query prediction into main text containing the query and secondary text containing additional disambiguating features (such as a city or region).
structured_format
is recommended for developers who wish to show two
separate, but related, UI elements. Developers who wish to show a
single UI element may want to use text
instead. They are two
different ways to represent a query prediction. Users should not try to
parse structured_format
into text
or vice versa.
Declaration
public AutocompletePlacesResponse.Types.Suggestion.Types.StructuredFormat StructuredFormat { get; set; }
Property Value
Type | Description |
---|---|
AutocompletePlacesResponse.Types.Suggestion.Types.StructuredFormat |
Text
The predicted text. This text does not represent a Place, but rather a text query that could be used in a search endpoint (for example, Text Search).
text
is recommended for developers who wish to show a single UI
element. Developers who wish to show two separate, but related, UI
elements may want to use structured_format
instead. They are two
different ways to represent a query prediction. Users should not try to
parse structured_format
into text
or vice versa.
May be in mixed languages if the request input
and language_code
are in different languages or if part of the query does not have a
translation from the local language to language_code
.
Declaration
public AutocompletePlacesResponse.Types.Suggestion.Types.FormattableText Text { get; set; }
Property Value
Type | Description |
---|---|
AutocompletePlacesResponse.Types.Suggestion.Types.FormattableText |