Class: Google::Apis::SpectrumV1explorer::GeoLocation
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::GeoLocation
- 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
This parameter is used to specify the geolocation of the device.
Instance Attribute Summary collapse
-
#confidence ⇒ Fixnum
The location confidence level, as an integer percentage, may be required, depending on the regulatory domain.
-
#point ⇒ Google::Apis::SpectrumV1explorer::GeoLocationEllipse
A "point" with uncertainty is represented using the Ellipse shape.
-
#region ⇒ Google::Apis::SpectrumV1explorer::GeoLocationPolygon
A region is represented using the polygonal shape.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GeoLocation
constructor
A new instance of GeoLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GeoLocation
Returns a new instance of GeoLocation
411 412 413 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Fixnum
The location confidence level, as an integer percentage, may be required,
depending on the regulatory domain. When the parameter is optional and not
provided, its value is assumed to be 95. Valid values range from 0 to 99,
since, in practice, 100-percent confidence is not achievable. The confidence
value is meaningful only when geolocation refers to a point with uncertainty.
Corresponds to the JSON property confidence
399 400 401 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 399 def confidence @confidence end |
#point ⇒ Google::Apis::SpectrumV1explorer::GeoLocationEllipse
A "point" with uncertainty is represented using the Ellipse shape.
Corresponds to the JSON property point
404 405 406 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 404 def point @point end |
#region ⇒ Google::Apis::SpectrumV1explorer::GeoLocationPolygon
A region is represented using the polygonal shape.
Corresponds to the JSON property region
409 410 411 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 409 def region @region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
416 417 418 419 420 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 416 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @point = args[:point] if args.key?(:point) @region = args[:region] if args.key?(:region) end |