Class: Google::Apis::CoordinateV1::LocationRecord

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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_timeString

The collection time in milliseconds since the epoch. Corresponds to the JSON property collectionTime

Returns:

  • (String)


447
448
449
# File 'generated/google/apis/coordinate_v1/classes.rb', line 447

def collection_time
  @collection_time
end

#confidence_radiusFloat

The location accuracy in meters. This is the radius of a 95% confidence interval around the location measurement. Corresponds to the JSON property confidenceRadius

Returns:

  • (Float)


453
454
455
# File 'generated/google/apis/coordinate_v1/classes.rb', line 453

def confidence_radius
  @confidence_radius
end

#kindString

Identifies this object as a location. Corresponds to the JSON property kind

Returns:

  • (String)


458
459
460
# File 'generated/google/apis/coordinate_v1/classes.rb', line 458

def kind
  @kind
end

#latitudeFloat

Latitude. Corresponds to the JSON property latitude

Returns:

  • (Float)


463
464
465
# File 'generated/google/apis/coordinate_v1/classes.rb', line 463

def latitude
  @latitude
end

#longitudeFloat

Longitude. Corresponds to the JSON property longitude

Returns:

  • (Float)


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