QualityDialogManagerLocalResult

AI Overview😉

  • Potential purpose of module in simple language: This module, QualityDialogManagerLocalResult, appears to be responsible for providing detailed information about a local business or location, such as its name, address, distance from the user, and other relevant details. Its purpose is to provide a comprehensive understanding of a local result, which can be used to improve the user's search experience.
  • How it could impact search results: This module can significantly impact search results by providing users with more accurate and relevant information about local businesses or locations. It can help users make informed decisions by providing details such as distance, business type, and availability of services. This can lead to more accurate and relevant search results, improving the overall user experience.
  • How a website may change things to be more favorable for this function: To be more favorable for this function, a website can ensure that it provides accurate and up-to-date information about its business or location, such as its name, address, and services offered. Additionally, the website can optimize its content to include relevant keywords and phrases that can help it appear in local search results. Furthermore, the website can improve its online presence by claiming and verifying its Google My Business listing, which can help Google to provide more accurate and relevant information to users.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalResult (google_api_content_warehouse v0.4.0)

A generic representation of a local result returned by a local backend. Next ID: 33

Attributes

  • adminArea1 (type: String.t, default: nil) - This field can represent different areas depending on the country. For example in the US it is state but in Canada it would be a province.
  • availableIntents (type: GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalIntentOptions.t, default: nil) - The set of available intents changes with result. An intersection of available_intents and allowed_intents (See: local_config.proto), is shown to the user.
  • businessType (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType.t, default: nil) - Bitset of business types this result falls into. Many fields in this message may be unset - expect good coverage for restaurants and hotels for now, but not for other verticals.
  • country (type: String.t, default: nil) -
  • countryCode (type: String.t, default: nil) - The two-letter ISO 3166-1 country code of this result. Generated by FindFeatureCountryCode http://google3/geostore/base/public/country.h?l=39&rcl=154898119 so it should always be populated, but technically there is no guarantee.
  • distanceMeters (type: String.t, default: nil) - For a directions result, this field will be the distance from the origin to this result using the best measure we have available - the distance along a route, if we have one, or just the crow's flight distance. For a local result, this field will be the crow's flight distance from the user to the result.
  • distanceUnits (type: String.t, default: nil) - The standard units of the location where the user is based (not their current location). For example, miles for a user from the US, kilometers for the UK. A US user currently in the UK should have units read in miles.
  • externalIds (type: GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerExternalIds.t, default: nil) - Various external IDs that we may have for this result.
  • featureType (type: String.t, default: nil) -
  • inUserAdminArea1 (type: boolean(), default: nil) - If true, this LocalResult is located in the same state as the user's location.
  • inUserCountry (type: boolean(), default: nil) - If true, this LocalResult is located in the same country as the user's location.
  • inUserLocality (type: boolean(), default: nil) - Whether this result is in the same city or town that the user is in.
  • internalFoodOrderingMetadata (type: GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadata.t, default: nil) - Internal Food ordering action (i.e food ordering via Google) metadata.
  • isBusinessChain (type: boolean(), default: nil) - If the original query had a chain intent, and this result is for a business chain.
  • locality (type: String.t, default: nil) - City/Town.
  • name (type: String.t, default: nil) - The name of the result, extracted from its FeatureProto's name field.
  • neighborhood (type: String.t, default: nil) - Neighborhood within a city. This field is not likely to be set for towns or smaller cities.
  • resultId (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalLocalResultId.t, default: nil) - All info we will need to lookup this result in search.
  • streetName (type: String.t, default: nil) -
  • streetNumber (type: String.t, default: nil) -
  • synonym (type: list(String.t), default: nil) - A list of text synonyms the user could use to refer to the result.
  • ttsAddress (type: String.t, default: nil) - The address of this result formatted for TTS output. This formatting removes acronyms like 2-letter state codes as they cannot be spoken well.

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalResult{
  adminArea1: String.t() | nil,
  availableIntents:
    GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalIntentOptions.t()
    | nil,
  businessType:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType.t()
    | nil,
  country: String.t() | nil,
  countryCode: String.t() | nil,
  distanceMeters: String.t() | nil,
  distanceUnits: String.t() | nil,
  externalIds:
    GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerExternalIds.t()
    | nil,
  featureType: String.t() | nil,
  inUserAdminArea1: boolean() | nil,
  inUserCountry: boolean() | nil,
  inUserLocality: boolean() | nil,
  internalFoodOrderingMetadata:
    GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadata.t()
    | nil,
  isBusinessChain: boolean() | nil,
  locality: String.t() | nil,
  name: String.t() | nil,
  neighborhood: String.t() | nil,
  resultId:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalLocalResultId.t()
    | nil,
  streetName: String.t() | nil,
  streetNumber: String.t() | nil,
  synonym: [String.t()] | nil,
  ttsAddress: String.t() | nil
}

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.