Class: Google::Apis::SpectrumV1explorer::GeoLocationPoint
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::GeoLocationPoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb
Overview
A single geolocation on the globe.
Instance Attribute Summary collapse
-
#latitude ⇒ Float
A required floating-point number that expresses the latitude in degrees using the WGS84 datum.
-
#longitude ⇒ Float
A required floating-point number that expresses the longitude in degrees using the WGS84 datum.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GeoLocationPoint
constructor
A new instance of GeoLocationPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GeoLocationPoint
Returns a new instance of GeoLocationPoint
487 488 489 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 487 def initialize(**args) update!(**args) end |
Instance Attribute Details
#latitude ⇒ Float
A required floating-point number that expresses the latitude in degrees using
the WGS84 datum. For details on this encoding, see the National Imagery and
Mapping Agency's Technical Report TR8350.2.
Corresponds to the JSON property latitude
478 479 480 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 478 def latitude @latitude end |
#longitude ⇒ Float
A required floating-point number that expresses the longitude in degrees using
the WGS84 datum. For details on this encoding, see the National Imagery and
Mapping Agency's Technical Report TR8350.2.
Corresponds to the JSON property longitude
485 486 487 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 485 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
492 493 494 495 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 492 def update!(**args) @latitude = args[:latitude] if args.key?(:latitude) @longitude = args[:longitude] if args.key?(:longitude) end |