Parcelable
public class LocationItem extends Item
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.ContentsFlags, Parcelable.Creator<T extends Object>, Parcelable.WriteFlags
Modifier and Type | Field | Description |
---|---|---|
static String |
ACCURACY |
|
static String |
BEARING |
|
static Parcelable.Creator<LocationItem> |
CREATOR |
|
static String |
LATITUDE |
|
static String |
LEVEL_BUILDING |
Building level.
|
static String |
LEVEL_CITY |
City level.
|
static String |
LEVEL_COUNTRY |
Country level.
|
static String |
LEVEL_EXACT |
Exact level.
|
static String |
LEVEL_NEIGHBORHOOD |
Neighborhood level.
|
static String |
LONGITUDE |
|
static String |
PROVIDER |
|
static String |
SPEED |
|
static String |
TIMESTAMP |
TIME_CREATED
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor | Description |
---|---|
LocationItem(Location location) |
Modifier and Type | Method | Description |
---|---|---|
float |
getAccuracy() |
Get the accuracy
|
float |
getBearing() |
Get the bearing at the location.
|
double |
getLatitude() |
Get the latitude
|
double |
getLongitude() |
Get the longitude
|
String |
getProvider() |
Get the provider of the location data, e.g., "gps" or "network".
|
float |
getSpeed() |
Get the speed at the location
|
long |
getTime() |
Get the timestamp of the location.
|
containsField, describeContents, getAsBoolean, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getBundle, getValueByField, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setParcelableArrayListFieldValue, setStringArrayListFieldValue, toDebugString, writeToParcel
public static final String LATITUDE
public static final String LONGITUDE
public static final String PROVIDER
public static final String TIMESTAMP
public static final String ACCURACY
public static final String SPEED
public static final String BEARING
public static final String LEVEL_COUNTRY
public static final String LEVEL_CITY
public static final String LEVEL_NEIGHBORHOOD
public static final String LEVEL_BUILDING
public static final String LEVEL_EXACT
public static final Parcelable.Creator<LocationItem> CREATOR
public LocationItem(Location location)
public double getLatitude()
public double getLongitude()
public String getProvider()
public long getTime()
public float getAccuracy()
public float getSpeed()
public float getBearing()