PlaceLikelihood

public abstract classPlaceLikelihoodimplementsParcelable

APlaceand the relative likelihood of the place being the best match within the list of returned places for a single request.

Summary

Constants

static final double

The highest likelihood possible, for example, the user is most likely to be here.

static final double

The lowest likelihood possible, for example, the user is least likely to be here.

Public constructors

Public methods

abstract @FloatRange(from = 0.0, to = 1.0) double

Returns a value indicating the degree of confidence that the device is at the correspondingPlacefromLIKELIHOOD_MIN_VALUEtoLIKELIHOOD_MAX_VALUE(inclusive).

abstractPlace

Returns thePlaceassociated with thisPlaceLikelihood.

staticPlaceLikelihood
newInstance(Placeplace, @FloatRange(from = 0.0, to = 1.0) double likelihood)

Creates aPlaceLikelihood.

Inherited Constants

Fromandroid.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

Fromandroid.os.Parcelable
abstract int
int
abstract void

Constants

LIKELIHOOD_MAX_VALUE

public static final doubleLIKELIHOOD_MAX_VALUE= 1.0

The highest likelihood possible, for example, the user is most likely to be here. For more information, seegetLikelihood.

LIKELIHOOD_MIN_VALUE

public static final doubleLIKELIHOOD_MIN_VALUE= 0.0

The lowest likelihood possible, for example, the user is least likely to be here. For more information, seegetLikelihood.

Public constructors

PlaceLikelihood

publicPlaceLikelihood()

Public methods

getLikelihood

public abstract @FloatRange(from = 0.0, to = 1.0) doublegetLikelihood()

Returns a value indicating the degree of confidence that the device is at the correspondingPlacefromLIKELIHOOD_MIN_VALUEtoLIKELIHOOD_MAX_VALUE(inclusive).

getPlace

public abstractPlacegetPlace()

Returns thePlaceassociated with thisPlaceLikelihood.

newInstance

public staticPlaceLikelihoodnewInstance(Placeplace, @FloatRange(from = 0.0, to = 1.0) double likelihood)

Creates aPlaceLikelihood.

Throws
java.lang.IllegalArgumentException

if the value oflikelihoodis not within the range:LIKELIHOOD_MIN_VALUElikelihoodLIKELIHOOD_MAX_VALUE.