GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceAddressComponent (google_api_places v0.11.0)

View Source

The structured components that form the formatted address, if this information is available.

Attributes

  • languageCode (type: String.t, default: nil) - The language used to format this components, in CLDR notation.
  • longText (type: String.t, default: nil) - The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of "Australia".
  • shortText (type: String.t, default: nil) - An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of "AU".
  • types (type: list(String.t), default: nil) - An array indicating the type(s) of the address component.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceAddressComponent{
  languageCode: String.t() | nil,
  longText: String.t() | nil,
  shortText: String.t() | nil,
  types: [String.t()] | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.