@Immutable @LevelUpApi(contract=PUBLIC) public final class Location extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<Location> |
CREATOR
Implements the
Parcelable interface. |
static String |
URL_FACEBOOK
URL key for Facebook.
|
static String |
URL_FOODLER
URL key for Foodler.
|
static String |
URL_MENU
URL key for Menu.
|
static String |
URL_NEWSLETTER
URL key for a newsletter.
|
static String |
URL_OPENTABLE
URL key for OpenTable.
|
static String |
URL_TWITTER
URL key for Twitter.
|
static String |
URL_YELP
URL key for Yelp.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
Location(Set<Integer> categories,
String extendedAddress,
String hours,
long id,
double latitude,
double longitude,
String locality,
long merchantId,
String merchantName,
String phone,
String postalCode,
String region,
boolean shown,
String streetAddress,
Map<String,String> urls,
String name) |
Location(Set<Integer> categories,
String extendedAddress,
String hours,
long id,
double latitude,
double longitude,
String locality,
long merchantId,
String merchantName,
String name,
String phone,
String postalCode,
String region,
boolean shown,
String streetAddress) |
Location(Set<Integer> categories,
String extendedAddress,
String hours,
long id,
double latitude,
double longitude,
String locality,
long merchantId,
String merchantName,
String name,
String phone,
String postalCode,
String region,
boolean shown,
String streetAddress,
Map<String,String> urls)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
Set<Integer> |
getCategories()
The categories that this
Location is classified under. |
String |
getExtendedAddress()
The
Location's extended address. |
String |
getHours()
The hours of operation for this
Location. |
long |
getId()
The web service ID of this
Location. |
double |
getLatitude()
The latitude of this
Location. |
String |
getLocality()
The locality (city) of this
Location. |
double |
getLongitude()
The longitude of this
Location. |
long |
getMerchantId()
The web service ID of the location's merchant.
|
String |
getMerchantName()
The name of the location's merchant.
|
String |
getName()
The name of the location, if different from the merchant name.
|
String |
getPhone()
The phone number of this
Location. |
String |
getPostalCode()
The postal code of this
Location. |
String |
getRegion()
The region (state in the US) of this
Location. |
String |
getStreetAddress()
The address of this
Location. |
String |
getUrl(String key)
Deprecated.
|
Map<String,String> |
getUrls()
Deprecated.
|
int |
hashCode() |
boolean |
isShown()
Whether or not this location is to be shown to the user.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Location> CREATOR
Parcelable interface.public static final String URL_YELP
public static final String URL_OPENTABLE
public static final String URL_MENU
public static final String URL_TWITTER
public static final String URL_NEWSLETTER
public static final String URL_FACEBOOK
public static final String URL_FOODLER
@Deprecated public Location(Set<Integer> categories, String extendedAddress, String hours, long id, double latitude, double longitude, String locality, long merchantId, String merchantName, String name, String phone, String postalCode, String region, boolean shown, String streetAddress, Map<String,String> urls)
categories - the categories that this Location is classified under. null
will turn into an empty set.extendedAddress - the Location's extended address.hours - the hours of operation for this Location.id - the ID on the web service of this Location.latitude - the latitude of this Location.longitude - the longitude of this Location.locality - the locality (city) of this Location.merchantId - the ID number of the location's merchant.merchantName - The name of the location's merchant.name - The name of the location, if different from the merchant name.phone - the phone number for this Location.postalCode - the postal code for this Location.region - the region (state in the US) for this Location.shown - whether or not this location is to be shown to the user.streetAddress - the address of this Location.urls - a map of URLs associated with this Location. This map will be made
unmodifiable.public Location(Set<Integer> categories, String extendedAddress, String hours, long id, double latitude, double longitude, String locality, long merchantId, String merchantName, String name, String phone, String postalCode, String region, boolean shown, String streetAddress)
categories - the categories that this Location is classified under. null
will turn into an empty set.extendedAddress - the Location's extended address.hours - the hours of operation for this Location.id - the ID on the web service of this Location.latitude - the latitude of this Location.longitude - the longitude of this Location.locality - the locality (city) of this Location.merchantId - the ID number of the location's merchant.merchantName - The name of the location's merchant.name - The name of the location, if different from the merchant name.phone - the phone number for this Location.postalCode - the postal code for this Location.region - the region (state in the US) for this Location.shown - whether or not this location is to be shown to the user.streetAddress - the address of this Location.public Location(Set<Integer> categories, String extendedAddress, String hours, long id, double latitude, double longitude, String locality, long merchantId, String merchantName, String phone, String postalCode, String region, boolean shown, String streetAddress, Map<String,String> urls, String name)
@Deprecated public String getUrl(String key)
WebLink through the WebLinkRequestFactory.key - the name of the given URL.null if there is no such mapping.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic Set<Integer> getCategories()
Location is classified under.public long getId()
Location.public double getLatitude()
Location.public double getLongitude()
Location.public long getMerchantId()
public String getMerchantName()
public boolean isShown()
@Deprecated public Map<String,String> getUrls()
Location. URLs are now returned as a WebLink through the WebLinkRequestFactory.public String getName()