tgbot-cpp
Loading...
Searching...
No Matches
Location.h
Go to the documentation of this file.
1#ifndef TGBOT_LOCATION_H
2#define TGBOT_LOCATION_H
3
4#include <cstdint>
5#include <memory>
6
7namespace TgBot {
8
14class Location {
15
16public:
17 typedef std::shared_ptr<Location> Ptr;
18
22 float latitude;
23
27 float longitude;
28
33
39 std::int32_t livePeriod;
40
46 std::int32_t heading;
47
54};
55}
56
57#endif //TGBOT_LOCATION_H
This object represents a point on the map.
Definition Location.h:14
float latitude
Latitude as defined by sender.
Definition Location.h:22
std::shared_ptr< Location > Ptr
Definition Location.h:17
std::int32_t livePeriod
Optional. Time relative to the message sending date, during which the location can be updated; in sec...
Definition Location.h:39
std::int32_t proximityAlertRadius
Optional. The maximum distance for proximity alerts about approaching another chat member,...
Definition Location.h:53
std::int32_t heading
Optional. The direction in which user is moving, in degrees; 1-360.
Definition Location.h:46
float longitude
Longitude as defined by sender.
Definition Location.h:27
float horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Location.h:32
Definition Api.h:40