Class: Google::Apis::DriveV2::File::ImageMediaMetadata::Location

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/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.



2879
2880
2881
# File 'lib/google/apis/drive_v2/classes.rb', line 2879

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)


2867
2868
2869
# File 'lib/google/apis/drive_v2/classes.rb', line 2867

def altitude
  @altitude
end

#latitudeFloat

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

Returns:

  • (Float)


2872
2873
2874
# File 'lib/google/apis/drive_v2/classes.rb', line 2872

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


2877
2878
2879
# File 'lib/google/apis/drive_v2/classes.rb', line 2877

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2884
2885
2886
2887
2888
# File 'lib/google/apis/drive_v2/classes.rb', line 2884

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