Class: Google::Apis::StreetviewpublishV1::LatLngBounds

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

Overview

A rectangle in geographical coordinates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LatLngBounds

Returns a new instance of LatLngBounds.



310
311
312
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 310

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

Instance Attribute Details

#northeastGoogle::Apis::StreetviewpublishV1::LatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property northeast



300
301
302
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 300

def northeast
  @northeast
end

#southwestGoogle::Apis::StreetviewpublishV1::LatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property southwest



308
309
310
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 308

def southwest
  @southwest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



315
316
317
318
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 315

def update!(**args)
  @northeast = args[:northeast] if args.key?(:northeast)
  @southwest = args[:southwest] if args.key?(:southwest)
end