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

A latitude-longitude rectangle, represented as two diagonally opposite points "lo" and "hi". The rectangle is considered to be a closed region, i.e. it includes its boundary. The latitude bounds must be in the range -90 to 90 degrees inclusive, and the longitude bounds must be in the range -180 to 180 degrees inclusive. Various cases include: - If lo == hi, the rectangle consists of a single point. - If lo.longitude > hi.longitude, the longitude range is "inverted" (the rectangle crosses the 180 degree longitude line). - If lo.longitude == -180 degrees and hi.longitude = 180 degrees, the rectangle includes all longitudes. - If lo.longitude = 180 degrees and hi.longitude = -180 degrees, the longitude range is empty. - If lo.latitude > hi.latitude, the latitude range is empty.

Attributes

  • hi (type: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t, default: nil) -
  • lo (type: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t, default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto{
  hi: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil,
  lo: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.