Skip to content

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) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#heading : Int32 | Int64 | Nil #

Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.

View source

#heading=(heading : Int32 | Int64 | Nil) #

Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.

View source

#horizontal_accuracy : Float64? #

Optional. The radius of uncertainty for the location, measured in meters; 0-1500

View source

#horizontal_accuracy=(horizontal_accuracy : Float64?) #

Optional. The radius of uncertainty for the location, measured in meters; 0-1500

View source

#latitude : Float64 #

Latitude as defined by sender

View source

#latitude=(latitude : Float64) #

Latitude as defined by sender

View source

#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.

View source

#live_period=(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.

View source

#longitude : Float64 #

Longitude as defined by sender

View source

#longitude=(longitude : Float64) #

Longitude as defined by sender

View source

#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.

View source

#proximity_alert_radius=(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.

View source