Class: Google::Apis::SpectrumV1explorer::GeoLocationPoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#latitudeFloat

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

Returns:

  • (Float)


478
479
480
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 478

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


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