PlaceLikelihood | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public interface

# PlaceLikelihood

implements Freezable<PlaceLikelihood>

com.google.android.gms.location.places.PlaceLikelihood

## Class Overview

Represents 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 about likelihoods, see `PlaceLikelihoodBuffer`.

## Summary

Public Methods
abstract float | getLikelihood() Returns a value from 0.0 to 1.0 indicating the confidence that the user is at this place.
abstract Place | getPlace() Returns the place contained in this `PlaceLikelihood`.

[Expand] Inherited Methods
From interface com.google.android.gms.common.data.Freezable
abstract PlaceLikelihood | freeze() Freeze a volatile representation into an immutable representation.
abstract boolean | isDataValid() Check to see if this object is valid for use.

## Public Methods

#### public abstract float getLikelihood ()

Returns a value from 0.0 to 1.0 indicating the confidence that the user is at this place.

The larger the value the more confident we are of the place returned. For example, a likelihood of 0.75 means that the user is at least 75% likely to be at this place.

#### public abstract Place getPlace ()

Returns the place contained in this `PlaceLikelihood`.