public abstract class Location extends Object implements Parcelable
SavedLocation and LearnedLocation.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getAddress()
Gets the address of the location.
|
GeoPoint |
getGeoPoint()
Gets the longitude and latitude coordinates of the location.
|
String |
getName()
Gets the name of the location.
|
TimeZone |
getTimeZone()
Returns the
TimeZone for this Location. |
int |
hashCode() |
void |
setAddress(String address)
Sets the address of the location.
|
void |
setGeoPoint(GeoPoint coordinates)
Sets the longitude and latitude of the location.
|
void |
setName(String name)
Set the name of the location.
|
void |
writeToParcel(Parcel dest,
int flags) |
public String getName()
public void setName(String name)
name - The location's name. May be null.public GeoPoint getGeoPoint()
GeoPoint for the location.public void setGeoPoint(GeoPoint coordinates)
coordinates - The coordinates of the location expressed as a GeoPoint. Must not be null.public String getAddress()
public void setAddress(String address)
address - The location address.public TimeZone getTimeZone()
TimeZone for this Location.Location, or null if the time zone is not availablepublic int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface ParcelableCopyright © 2013-2016 INRIX, Inc. All Rights Reserved.