Class: Google::Apis::CloudsearchV1::MapInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MapInfo

Returns a new instance of MapInfo.



4895
4896
4897
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4895

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#latFloat

Latitude in degrees Corresponds to the JSON property lat

Returns:

  • (Float)


4870
4871
4872
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4870

def lat
  @lat
end

#location_urlGoogle::Apis::CloudsearchV1::SafeUrlProto

Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code. Corresponds to the JSON property locationUrl



4877
4878
4879
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4877

def location_url
  @location_url
end

#longFloat

Longitude in degrees Corresponds to the JSON property long

Returns:

  • (Float)


4882
4883
4884
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4882

def long
  @long
end

#map_tileArray<Google::Apis::CloudsearchV1::MapTile>

MapTiles for the area around a user's work location Corresponds to the JSON property mapTile



4887
4888
4889
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4887

def map_tile
  @map_tile
end

#zoomFixnum

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 Corresponds to the JSON property zoom

Returns:

  • (Fixnum)


4893
4894
4895
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4893

def zoom
  @zoom
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4900
4901
4902
4903
4904
4905
4906
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4900

def update!(**args)
  @lat = args[:lat] if args.key?(:lat)
  @location_url = args[:location_url] if args.key?(:location_url)
  @long = args[:long] if args.key?(:long)
  @map_tile = args[:map_tile] if args.key?(:map_tile)
  @zoom = args[:zoom] if args.key?(:zoom)
end