-
public final class LocationEntityRepresents a Location entity in a message.
-
-
Field Summary
Fields Modifier and Type Field Description private final Floatlatitudeprivate final Floatlongitudeprivate final FloathorizontalAccuracyprivate final IntegerlivePeriodprivate final Integerheadingprivate final IntegerproximityAlertRadius
-
Method Summary
Modifier and Type Method Description final FloatgetLatitude()Latitude of the location. final FloatgetLongitude()Longitude of the location final FloatgetHorizontalAccuracy()The radius of uncertainty for the location, measured in meters; 0-1500. final IntegergetLivePeriod()Period in seconds for which the location will be updated. final IntegergetHeading()For live locations, a direction in which the user is moving, in degrees. final IntegergetProximityAlertRadius()For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. -
-
Method Detail
-
getLatitude
final Float getLatitude()
Latitude of the location.
-
getLongitude
final Float getLongitude()
Longitude of the location
-
getHorizontalAccuracy
final Float getHorizontalAccuracy()
The radius of uncertainty for the location, measured in meters; 0-1500.
-
getLivePeriod
final Integer getLivePeriod()
Period in seconds for which the location will be updated. See Live Locations, should be between 60 and 86400.
-
getHeading
final Integer getHeading()
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
-
getProximityAlertRadius
final Integer getProximityAlertRadius()
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
-
-
-
-