public class LearnedLocation extends Location implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<LearnedLocation> |
CREATOR
Creator for a parcelable
LearnedLocation. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
Map<String,Double> |
getDayConditionalLikelihoods()
Likelihood of visiting the learned location in relation to the day of the week.
|
Map<String,Double> |
getHourConditionalLikelihoods()
Gets the likelihood of visiting the learned location in relation to the hour of the day.
|
Date |
getLastVisitedDate()
Gets the date/time the user last visited this
LearnedLocation. |
double |
getLikelihood()
Gets the likelihood of this
LearnedLocation. |
int |
getWeight()
Gets the relative weight of this
LearnedLocation relative to other LearnedLocations. |
int |
hashCode() |
boolean |
isHidden()
Gets the current visibility of the
LearnedLocation. |
void |
writeToParcel(Parcel dest,
int flags) |
getAddress, getGeoPoint, getName, getTimeZone, setAddress, setGeoPoint, setNamepublic static final Parcelable.Creator<LearnedLocation> CREATOR
LearnedLocation.public boolean isHidden()
LearnedLocation. All LearnedLocations are visible
unless they are explicitly hidden.true if the location is hidden, false otherwise.public Map<String,Double> getHourConditionalLikelihoods()
public Map<String,Double> getDayConditionalLikelihoods()
public double getLikelihood()
LearnedLocation. The likelihood is a probabilistic representation
of the LearnedLocation.getWeight() and indicates how frequently a user visits this LearnedLocation
relative to other LearnedLocations represented as a fractional value between 0 and 1 (inclusive).LearnedLocation.public int getWeight()
LearnedLocation relative to other LearnedLocations.
A higher number indicates that the user visits this location more frequently than another
location with a lower weight.public Date getLastVisitedDate()
LearnedLocation.Date if available, null otherwise.public int describeContents()
describeContents in interface ParcelabledescribeContents in class Locationpublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface ParcelablewriteToParcel in class LocationCopyright © 2013-2016 INRIX, Inc. All Rights Reserved.