tgbot-cpp
Loading...
Searching...
No Matches
Location.h
Go to the documentation of this file.
1#ifndef TGBOT_CPP_LOCATION_H
2#define TGBOT_CPP_LOCATION_H
3
4#include <memory>
5
6namespace TgBot {
7
13class Location {
14
15public:
16 typedef std::shared_ptr<Location> Ptr;
17
21 float longitude;
22
26 float latitude;
27
32
37 std::int32_t livePeriod;
38
43 std::int32_t heading;
44
50};
51
52}
53
54#endif //TGBOT_CPP_LOCATION_H
This object represents a point on the map.
Definition Location.h:13
float latitude
Latitude as defined by sender.
Definition Location.h:26
std::shared_ptr< Location > Ptr
Definition Location.h:16
std::int32_t livePeriod
Optional. Time relative to the message sending date, during which the location can be updated,...
Definition Location.h:37
std::int32_t proximityAlertRadius
Optional. Maximum distance for proximity alerts about approaching another chat member,...
Definition Location.h:49
std::int32_t heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Definition Location.h:43
float longitude
Longitude as defined by sender.
Definition Location.h:21
float horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Location.h:31
Definition Api.h:39