Class: Google::Apis::DriveV3::File::ImageMediaMetadata::Location

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

Output only. Geographic location information stored in the image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



2353
2354
2355
# File 'lib/google/apis/drive_v3/classes.rb', line 2353

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#altitudeFloat

Output only. The altitude stored in the image. Corresponds to the JSON property altitude

Returns:

  • (Float)


2341
2342
2343
# File 'lib/google/apis/drive_v3/classes.rb', line 2341

def altitude
  @altitude
end

#latitudeFloat

Output only. The latitude stored in the image. Corresponds to the JSON property latitude

Returns:

  • (Float)


2346
2347
2348
# File 'lib/google/apis/drive_v3/classes.rb', line 2346

def latitude
  @latitude
end

#longitudeFloat

Output only. The longitude stored in the image. Corresponds to the JSON property longitude

Returns:

  • (Float)


2351
2352
2353
# File 'lib/google/apis/drive_v3/classes.rb', line 2351

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2358
2359
2360
2361
2362
# File 'lib/google/apis/drive_v3/classes.rb', line 2358

def update!(**args)
  @altitude = args[:altitude] if args.key?(:altitude)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end