Class: TD::Types::Location

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/location.rb

Overview

Describes a location on planet Earth.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#horizontal_accuracyFloat

The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown.

Returns:

  • (Float)

    the current value of horizontal_accuracy



9
10
11
# File 'lib/tdlib/types/location.rb', line 9

def horizontal_accuracy
  @horizontal_accuracy
end

#latitudeFloat

Latitude of the location in degrees; as defined by the sender.

Returns:

  • (Float)

    the current value of latitude



9
10
11
# File 'lib/tdlib/types/location.rb', line 9

def latitude
  @latitude
end

#longitudeFloat

Longitude of the location, in degrees; as defined by the sender.

Returns:

  • (Float)

    the current value of longitude



9
10
11
# File 'lib/tdlib/types/location.rb', line 9

def longitude
  @longitude
end