tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents a point on the map. https://core.telegram.org/bots/api#location. More...
#include <Location.hpp>
Public Member Functions | |
Location ()=default | |
Location (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
float | longitude {} |
Longitude as defined by sender. More... | |
float | latitude {} |
Latitude as defined by sender. More... | |
float | horizontalAccuracy {} |
Optional. The radius of uncertainty for the location, measured in meters; 0-1500. More... | |
std::int32_t | livePeriod {} |
Optional. Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only. More... | |
std::int32_t | heading {} |
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. More... | |
std::int32_t | proximityAlertRadius {} |
Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. More... | |
This object represents a point on the map. https://core.telegram.org/bots/api#location.
Definition at line 7 of file Location.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file Location.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 49 of file Location.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 37 of file Location.hpp.
std::int32_t tgbotxx::Location::heading {} |
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Definition at line 28 of file Location.hpp.
float tgbotxx::Location::horizontalAccuracy {} |
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition at line 20 of file Location.hpp.
float tgbotxx::Location::latitude {} |
Latitude as defined by sender.
Definition at line 17 of file Location.hpp.
std::int32_t tgbotxx::Location::livePeriod {} |
Optional. Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only.
Definition at line 24 of file Location.hpp.
float tgbotxx::Location::longitude {} |
Longitude as defined by sender.
Definition at line 14 of file Location.hpp.
std::int32_t tgbotxx::Location::proximityAlertRadius {} |
Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
Definition at line 33 of file Location.hpp.