class Tourmaline::Location
inherits Reference
#
This object represents a point on the map.
Included modules
JSON::Serializable
Constructors#
.new(longitude, latitude, horizontal_accuracy : Float64? = nil, live_period : Int32 | Int64 | Nil = nil, heading : Int32 | Int64 | Nil = nil, proximity_alert_radius : Int32 | Int64 | Nil = nil)
#
(longitude, latitude, horizontal_accuracy : Float64? = nil, live_period : Int32 | Int64 | Nil = nil, heading : Int32 | Int64 | Nil = nil, proximity_alert_radius : Int32 | Int64 | Nil = nil)
Methods#
#heading : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
#heading=(heading : Int32 | Int64 | Nil)
#
(heading : Int32 | Int64 | Nil)
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
#horizontal_accuracy : Float64?
#
: Float64?
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
#horizontal_accuracy=(horizontal_accuracy : Float64?)
#
(horizontal_accuracy : Float64?)
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
#live_period : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
#live_period=(live_period : Int32 | Int64 | Nil)
#
(live_period : Int32 | Int64 | Nil)
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
#proximity_alert_radius : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
#proximity_alert_radius=(proximity_alert_radius : Int32 | Int64 | Nil)
#
(proximity_alert_radius : Int32 | Int64 | Nil)
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.