Class: Google::Apis::BooksV1::GeoLayerData::Geo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb

Defined Under Namespace

Classes: Boundary, Viewport

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Geo

Returns a new instance of Geo.



1747
1748
1749
# File 'generated/google/apis/books_v1/classes.rb', line 1747

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

Instance Attribute Details

#boundaryArray<Array<Google::Apis::BooksV1::GeoLayerData::Geo::Boundary>>

The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates. Corresponds to the JSON property boundary



1705
1706
1707
# File 'generated/google/apis/books_v1/classes.rb', line 1705

def boundary
  @boundary
end

#cache_policyString

The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER Corresponds to the JSON property cachePolicy

Returns:

  • (String)


1710
1711
1712
# File 'generated/google/apis/books_v1/classes.rb', line 1710

def cache_policy
  @cache_policy
end

#country_codeString

The country code of the location. Corresponds to the JSON property countryCode

Returns:

  • (String)


1715
1716
1717
# File 'generated/google/apis/books_v1/classes.rb', line 1715

def country_code
  @country_code
end

#latitudeFloat

The latitude of the location. Corresponds to the JSON property latitude

Returns:

  • (Float)


1720
1721
1722
# File 'generated/google/apis/books_v1/classes.rb', line 1720

def latitude
  @latitude
end

#longitudeFloat

The longitude of the location. Corresponds to the JSON property longitude

Returns:

  • (Float)


1725
1726
1727
# File 'generated/google/apis/books_v1/classes.rb', line 1725

def longitude
  @longitude
end

#map_typeString

The type of map that should be used for this location. EX: HYBRID, ROADMAP, SATELLITE, TERRAIN Corresponds to the JSON property mapType

Returns:

  • (String)


1731
1732
1733
# File 'generated/google/apis/books_v1/classes.rb', line 1731

def map_type
  @map_type
end

#viewportGoogle::Apis::BooksV1::GeoLayerData::Geo::Viewport

The viewport for showing this location. This is a latitude, longitude rectangle. Corresponds to the JSON property viewport



1737
1738
1739
# File 'generated/google/apis/books_v1/classes.rb', line 1737

def viewport
  @viewport
end

#zoomFixnum

The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom level, in which the entire world can be seen on one map) to 21+ (down to individual buildings). See: https://developers.google.com/maps/documentation/ staticmaps/#Zoomlevels Corresponds to the JSON property zoom

Returns:

  • (Fixnum)


1745
1746
1747
# File 'generated/google/apis/books_v1/classes.rb', line 1745

def zoom
  @zoom
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
# File 'generated/google/apis/books_v1/classes.rb', line 1752

def update!(**args)
  @boundary = args[:boundary] if args.key?(:boundary)
  @cache_policy = args[:cache_policy] if args.key?(:cache_policy)
  @country_code = args[:country_code] if args.key?(:country_code)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
  @map_type = args[:map_type] if args.key?(:map_type)
  @viewport = args[:viewport] if args.key?(:viewport)
  @zoom = args[:zoom] if args.key?(:zoom)
end