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.



312
313
314
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 312

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



302
303
304
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 302

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



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

def southwest
  @southwest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



317
318
319
320
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 317

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