Class: Google::Apis::StreetviewpublishV1::LatLngBounds
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::LatLngBounds
- 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
-
#northeast ⇒ Google::Apis::StreetviewpublishV1::LatLng
An object that represents a latitude/longitude pair.
-
#southwest ⇒ Google::Apis::StreetviewpublishV1::LatLng
An object that represents a latitude/longitude pair.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LatLngBounds
constructor
A new instance of LatLngBounds.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LatLngBounds
Returns a new instance of LatLngBounds.
241 242 243 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#northeast ⇒ Google::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
231 232 233 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 231 def northeast @northeast end |
#southwest ⇒ Google::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
239 240 241 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 239 def southwest @southwest end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
246 247 248 249 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 246 def update!(**args) @northeast = args[:northeast] if args.key?(:northeast) @southwest = args[:southwest] if args.key?(:southwest) end |