class

Tourmaline::Location

Inherits JSON::Serializable / Reference / Object

This object represents a point on the map.

Constructors

new(longitude : Float64, latitude : Float64, horizontal_accuracy : Float64 | Nil = nil, live_period : Int32 | Int64 | Nil = nil, heading : Int32 | Int64 | Nil = nil, proximity_alert_radius : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

heading

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

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

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

Source
horizontal_accuracy

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

Source
horizontal_accuracy=(horizontal_accuracy : Float64 | Nil)

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

Source
latitude

Latitude as defined by sender

Source
latitude=(latitude : Float64)

Latitude as defined by sender

Source
live_period

Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.

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.

Source
longitude

Longitude as defined by sender

Source
longitude=(longitude : Float64)

Longitude as defined by sender

Source
proximity_alert_radius

Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.

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.

Source