Class: Google::Apis::BooksV1::GeoLayerData::Geo
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::GeoLayerData::Geo
- 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
Instance Attribute Summary collapse
-
#boundary ⇒ Array<Array<Google::Apis::BooksV1::GeoLayerData::Geo::Boundary>>
The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates.
-
#cache_policy ⇒ String
The cache policy active for this data.
-
#country_code ⇒ String
The country code of the location.
-
#latitude ⇒ Float
The latitude of the location.
-
#longitude ⇒ Float
The longitude of the location.
-
#map_type ⇒ String
The type of map that should be used for this location.
-
#viewport ⇒ Google::Apis::BooksV1::GeoLayerData::Geo::Viewport
The viewport for showing this location.
-
#zoom ⇒ Fixnum
The Zoom level to use for the map.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Geo
constructor
A new instance of Geo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Geo
Returns a new instance of Geo.
1784 1785 1786 |
# File 'generated/google/apis/books_v1/classes.rb', line 1784 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boundary ⇒ Array<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
1742 1743 1744 |
# File 'generated/google/apis/books_v1/classes.rb', line 1742 def boundary @boundary end |
#cache_policy ⇒ String
The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
Corresponds to the JSON property cachePolicy
1747 1748 1749 |
# File 'generated/google/apis/books_v1/classes.rb', line 1747 def cache_policy @cache_policy end |
#country_code ⇒ String
The country code of the location.
Corresponds to the JSON property countryCode
1752 1753 1754 |
# File 'generated/google/apis/books_v1/classes.rb', line 1752 def country_code @country_code end |
#latitude ⇒ Float
The latitude of the location.
Corresponds to the JSON property latitude
1757 1758 1759 |
# File 'generated/google/apis/books_v1/classes.rb', line 1757 def latitude @latitude end |
#longitude ⇒ Float
The longitude of the location.
Corresponds to the JSON property longitude
1762 1763 1764 |
# File 'generated/google/apis/books_v1/classes.rb', line 1762 def longitude @longitude end |
#map_type ⇒ String
The type of map that should be used for this location. EX: HYBRID, ROADMAP,
SATELLITE, TERRAIN
Corresponds to the JSON property mapType
1768 1769 1770 |
# File 'generated/google/apis/books_v1/classes.rb', line 1768 def map_type @map_type end |
#viewport ⇒ Google::Apis::BooksV1::GeoLayerData::Geo::Viewport
The viewport for showing this location. This is a latitude, longitude
rectangle.
Corresponds to the JSON property viewport
1774 1775 1776 |
# File 'generated/google/apis/books_v1/classes.rb', line 1774 def @viewport end |
#zoom ⇒ Fixnum
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
1782 1783 1784 |
# File 'generated/google/apis/books_v1/classes.rb', line 1782 def zoom @zoom end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'generated/google/apis/books_v1/classes.rb', line 1789 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 |