public class

Geoloc

extends Object
implements Parcelable Serializable
java.lang.Object
   ↳ com.gsma.services.rcs.Geoloc

Class Overview

Geolocation class

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
Geoloc(String label, double latitude, double longitude, long expiration, float accuracy)
Constructor
Geoloc(String geoloc)
Constructor: returns a Geoloc instance as parsed from the GEOLOC field in the GeolocSharingLog provider or the CONTENT field of a GelocMessage in the ChatLog.Message provider.
Public Methods
float getAccuracy()
Returns the accuracy
long getExpiration()
Returns the expiration date of the geoloc.
String getLabel()
Returns the label.
double getLatitude()
Returns the latitude.
double getLongitude()
Returns the longitude.
String toString()
Returns the geoloc in provider format.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public Geoloc (String label, double latitude, double longitude, long expiration, float accuracy)

Since: API Level 1.5

Constructor

Parameters
label Label
latitude Latitude
longitude Longitude
expiration Expiration date
accuracy Accuracy

public Geoloc (String geoloc)

Since: API Level 1.5

Constructor: returns a Geoloc instance as parsed from the GEOLOC field in the GeolocSharingLog provider or the CONTENT field of a GelocMessage in the ChatLog.Message provider.

Parameters
geoloc Provider geoloc format

Public Methods

public float getAccuracy ()

Since: API Level 1.5

Returns the accuracy

Returns
  • Accuracy in meters. 0 means no accuracy has been defined.

public long getExpiration ()

Since: API Level 1.5

Returns the expiration date of the geoloc.

Returns
  • Expiration date. 0 means no expiration date has been defined.

public String getLabel ()

Since: API Level 1.5

Returns the label.

Returns
  • Label

public double getLatitude ()

Since: API Level 1.5

Returns the latitude.

Returns
  • Latitude

public double getLongitude ()

Since: API Level 1.5

Returns the longitude.

Returns
  • Longitude

public String toString ()

Since: API Level

Returns the geoloc in provider format.

Returns
  • String