Location
class Location
This object represents a point on the map.
Methods
No description
Longitude as defined by sender.
Latitude as defined by sender.
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. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
Details
at line 18
__construct(float $longitude, float $latitude, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = null)
No description
at line 31
float
getLongitude()
Longitude as defined by sender.
at line 39
float
getLatitude()
Latitude as defined by sender.
at line 47
float|null
getHorizontalAccuracy()
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
at line 55
int|null
getLivePeriod()
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
at line 63
int|null
getHeading()
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
at line 71
int|null
getProximityAlertRadius()
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.