GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction (google_api_places v0.11.0)
View SourcePrediction results for a Query Autocomplete prediction.
Attributes
-
structuredFormat
(type:GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat.t
, default:nil
) - 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 usetext
instead. They are two different ways to represent a query prediction. Users should not try to parsestructured_format
intotext
or vice versa. -
text
(type:GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText.t
, default:nil
) - 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 usestructured_format
instead. They are two different ways to represent a query prediction. Users should not try to parsestructured_format
intotext
or vice versa. May be in mixed languages if the requestinput
andlanguage_code
are in different languages or if part of the query does not have a translation from the local language tolanguage_code
.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction{ structuredFormat: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat.t() | nil, text: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText.t() | nil }