View Source GoogleApi.CloudSearch.V1.Model.MapInfo (google_api_cloud_search v0.21.0)

Geo information used for rendering a map that shows the user's work location.

Attributes

  • lat (type: float(), default: nil) - Latitude in degrees
  • locationUrl (type: GoogleApi.CloudSearch.V1.Model.SafeUrlProto.t, default: nil) - URL to a view of a map centered on the user's work location in Campus Maps (for google.com) or Google Maps (external).
  • long (type: float(), default: nil) - Longitude in degrees
  • mapTile (type: list(GoogleApi.CloudSearch.V1.Model.MapTile.t), default: nil) - MapTiles for the area around a user's work location
  • zoom (type: integer(), default: nil) - The zoom level of the map. A constant zoom value of 18 is used for now to match the zoom of the map shown on a Moma Teams Profile page

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudSearch.V1.Model.MapInfo{
  lat: float() | nil,
  locationUrl: GoogleApi.CloudSearch.V1.Model.SafeUrlProto.t() | nil,
  long: float() | nil,
  mapTile: [GoogleApi.CloudSearch.V1.Model.MapTile.t()] | nil,
  zoom: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.