class Google::Apis::BooksV1::GeoLayerData::Geo

Attributes

boundary[RW]

The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates. Corresponds to the JSON property `boundary` @return [Array<String>]

cache_policy[RW]

The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER Corresponds to the JSON property `cachePolicy` @return [String]

country_code[RW]

The country code of the location. Corresponds to the JSON property `countryCode` @return [String]

latitude[RW]

The latitude of the location. Corresponds to the JSON property `latitude` @return [Float]

longitude[RW]

The longitude of the location. Corresponds to the JSON property `longitude` @return [Float]

map_type[RW]

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

viewport[RW]

The viewport for showing this location. This is a latitude, longitude rectangle. Corresponds to the JSON property `viewport` @return [Google::Apis::BooksV1::GeoLayerData::Geo::Viewport]

zoom[RW]

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` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/books_v1/classes.rb, line 1835
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/books_v1/classes.rb, line 1840
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