Class Location
java.lang.Object
io.micronaut.chatbots.telegram.api.Location
This object represents a point on the map.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable Float@NonNull Float@Nullable Integer@NonNull Float@Nullable IntegervoidsetHeading(@Nullable Integer heading) voidsetHorizontalAccuracy(@Nullable Float horizontalAccuracy) voidsetLatitude(@NonNull Float latitude) voidsetLivePeriod(@Nullable Integer livePeriod) voidsetLongitude(@NonNull Float longitude) voidsetProximityAlertRadius(@Nullable Integer proximityAlertRadius) toString()
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
getLongitude
- Returns:
- Longitude as defined by sender.
-
setLongitude
- Parameters:
longitude- Longitude as defined by sender.
-
getLatitude
- Returns:
- Latitude as defined by sender.
-
setLatitude
- Parameters:
latitude- Latitude as defined by sender.
-
getHorizontalAccuracy
- Returns:
- The radius of uncertainty for the location, measured in meters; 0-1500.
-
setHorizontalAccuracy
- Parameters:
horizontalAccuracy- The radius of uncertainty for the location, measured in meters; 0-1500.
-
getLivePeriod
- Returns:
- Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
-
setLivePeriod
- Parameters:
livePeriod- Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
-
getHeading
- Returns:
- The direction in which user is moving, in degrees; 1-360. For active live locations only.
-
setHeading
- Parameters:
heading- The direction in which user is moving, in degrees; 1-360. For active live locations only.
-
getProximityAlertRadius
- Returns:
- The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
-
setProximityAlertRadius
- Parameters:
proximityAlertRadius- The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
-
toString
-