Google is committed to advancing racial equity for Black communities. See how.

PlaceLikelihood

public interface PlaceLikelihood implements Freezable<PlaceLikelihood>

This interface is deprecated.
The Google Play Services Places SDK is deprecated. A new SDK is available. See the client migration guide for more information.

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

For more information about the likelihood value, see the developer's guide.

Public Method Summary

abstract float
getLikelihood()
Returns a value indicating the degree of confidence that the device is at the corresponding Place.
abstract Place
getPlace()
Returns the place associated with this PlaceLikelihood.

Inherited Method Summary

Public Methods

public abstract float getLikelihood ()

Returns a value indicating the degree of confidence that the device is at the corresponding Place.

A larger value indicates a higher degree of confidence.

Returns
  • The degree of confidence that the device is at this place, expressed as a decimal value between 0.0 and 1.0.

public abstract Place getPlace ()

Returns the place associated with this PlaceLikelihood.

Returns
  • The associated place.