class Tourmaline::Location
- Tourmaline::Location
- Reference
- Object
Overview
This object represents a point on the map.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#heading : Int32 | Int64 | Nil
Optional.
-
#heading=(heading : Int32 | Int64 | Nil)
Optional.
-
#horizontal_accuracy : Float64 | Nil
Optional.
-
#horizontal_accuracy=(horizontal_accuracy : Float64 | Nil)
Optional.
-
#latitude : Float64
Latitude as defined by sender
-
#latitude=(latitude : Float64)
Latitude as defined by sender
-
#live_period : Int32 | Int64 | Nil
Optional.
-
#live_period=(live_period : Int32 | Int64 | Nil)
Optional.
-
#longitude : Float64
Longitude as defined by sender
-
#longitude=(longitude : Float64)
Longitude as defined by sender
-
#proximity_alert_radius : Int32 | Int64 | Nil
Optional.
-
#proximity_alert_radius=(proximity_alert_radius : Int32 | Int64 | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.