Class: Google::Apis::CoordinateV1::LocationRecord
- Inherits:
-
Object
- Object
- Google::Apis::CoordinateV1::LocationRecord
- Defined in:
- generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb
Overview
Recorded location of a worker.
Instance Attribute Summary collapse
-
#collection_time ⇒ String
The collection time in milliseconds since the epoch.
-
#confidence_radius ⇒ Float
The location accuracy in meters.
-
#kind ⇒ String
Identifies this object as a location.
-
#latitude ⇒ Float
Latitude.
-
#longitude ⇒ Float
Longitude.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationRecord
constructor
A new instance of LocationRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ LocationRecord
Returns a new instance of LocationRecord
470 471 472 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 470 def initialize(**args) update!(**args) end |
Instance Attribute Details
#collection_time ⇒ String
The collection time in milliseconds since the epoch.
Corresponds to the JSON property collectionTime
447 448 449 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 447 def collection_time @collection_time end |
#confidence_radius ⇒ Float
The location accuracy in meters. This is the radius of a 95% confidence
interval around the location measurement.
Corresponds to the JSON property confidenceRadius
453 454 455 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 453 def confidence_radius @confidence_radius end |
#kind ⇒ String
Identifies this object as a location.
Corresponds to the JSON property kind
458 459 460 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 458 def kind @kind end |
#latitude ⇒ Float
Latitude.
Corresponds to the JSON property latitude
463 464 465 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 463 def latitude @latitude end |
#longitude ⇒ Float
Longitude.
Corresponds to the JSON property longitude
468 469 470 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 468 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
475 476 477 478 479 480 481 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 475 def update!(**args) @collection_time = args[:collection_time] if args.key?(:collection_time) @confidence_radius = args[:confidence_radius] if args.key?(:confidence_radius) @kind = args[:kind] if args.key?(:kind) @latitude = args[:latitude] if args.key?(:latitude) @longitude = args[:longitude] if args.key?(:longitude) end |