class Tourmaline::Location

Overview

This object represents a point on the map.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def heading : Int32 | Int64 | Nil #

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


[View source]
def heading=(heading : Int32 | Int64 | Nil) #

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


[View source]
def horizontal_accuracy : Float64 | Nil #

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


[View source]
def horizontal_accuracy=(horizontal_accuracy : Float64 | Nil) #

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


[View source]
def latitude : Float64 #

Latitude as defined by sender


[View source]
def latitude=(latitude : Float64) #

Latitude as defined by sender


[View source]
def 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]
def 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]
def longitude : Float64 #

Longitude as defined by sender


[View source]
def longitude=(longitude : Float64) #

Longitude as defined by sender


[View source]
def 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]
def 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]