View Source GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo (google_api_content_warehouse v0.3.0)

This represents one location.

Attributes

  • center (type: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t, default: nil) - The latitude and longitude of the conceptual center of the location. For cities, this would be the center of the downtown, or maybe the location of city hall. For states and countries it might be the capital city. But there are no guarantees and this may be any random point inside the location.
  • city (type: String.t, default: nil) -
  • country (type: String.t, default: nil) - Human readable name hierarchy. Only the relevant fields will be present. For example for city GeoLocations, sub_locality field will not be present. Cleared during index creation.
  • county (type: String.t, default: nil) -
  • enclosingStateFeatureId (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t, default: nil) - Oyster feature ID of the enclosing state. Cleared during index creation.
  • featureId (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t, default: nil) - Oyster feature ID of the location. Cleared during index creation.
  • state (type: String.t, default: nil) -
  • stateIdFprint (type: integer(), default: nil) - 32 bit fingerprint of the feature id of the state of this location. For cities and sub-localities it will be the enclosing state. For state locations, it will be fingerprint of the feture-id of the location itself. Populated during index creation.
  • subLocality (type: String.t, default: nil) -
  • type (type: String.t, default: nil) - Type of the location (sub-locality, city, state etc).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo{
  center: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil,
  city: String.t() | nil,
  country: String.t() | nil,
  county: String.t() | nil,
  enclosingStateFeatureId:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil,
  featureId:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil,
  state: String.t() | nil,
  stateIdFprint: integer() | nil,
  subLocality: String.t() | nil,
  type: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.