GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPlaceLikelihood
@interface GMSPlaceLikelihood : NSObject <NSCopying>
Represents a GMSPlace
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 place likelihoods, see
GMSPlaceLikelihoodList
.
-
The place contained in this place likelihood.
Declaration
Objective-C
@property (nonatomic, strong, readonly) GMSPlace *_Nonnull place;
-
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.
Declaration
Swift
var likelihood: Double { get }
Objective-C
@property (nonatomic, readonly) double likelihood;
-
Declaration
Swift
init(place: GMSPlace, likelihood: Double)
Objective-C
- (instancetype)initWithPlace:(GMSPlace *)place
likelihood:(double)likelihood NS_DESIGNATED_INITIALIZER;
-
Default init is not available. Please use the designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPlaceLikelihood\u003c/code\u003e represents a place and its likelihood of being the best match for a user's location.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a \u003ccode\u003eplace\u003c/code\u003e object containing details about the location and a \u003ccode\u003elikelihood\u003c/code\u003e value indicating confidence (0.0 to 1.0).\u003c/p\u003e\n"],["\u003cp\u003eHigher \u003ccode\u003elikelihood\u003c/code\u003e values represent greater confidence that the user is at the specified place.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSPlaceLikelihood\u003c/code\u003e objects are typically used within a \u003ccode\u003eGMSPlaceLikelihoodList\u003c/code\u003e to present multiple location possibilities.\u003c/p\u003e\n"]]],[],null,["# GooglePlaces Framework Reference\n\nGMSPlaceLikelihood\n==================\n\n @interface GMSPlaceLikelihood : NSObject \u003cNSCopying\u003e\n\nRepresents a [GMSPlace](../Classes/GMSPlace.html) and the relative likelihood of the place being the best match within the\nlist of returned places for a single request. For more information about place likelihoods, see\n[GMSPlaceLikelihoodList](../Classes/GMSPlaceLikelihoodList.html).\n- `\n ``\n ``\n `\n\n ### [place](#/c:objc(cs)GMSPlaceLikelihood(py)place)\n\n `\n ` \n The place contained in this place likelihood. \n\n #### Declaration\n\n Swift \n\n var place: ../Classes/GMSPlace.html { get }\n\n Objective-C \n\n @property (nonatomic, strong, readonly) ../Classes/GMSPlace.html *_Nonnull place;\n\n- `\n ``\n ``\n `\n\n ### [likelihood](#/c:objc(cs)GMSPlaceLikelihood(py)likelihood)\n\n `\n ` \n Returns a value from 0.0 to 1.0 indicating the confidence that the user is at this place. The\n larger the value the more confident we are of the place returned. For example, a likelihood of\n 0.75 means that the user is at least 75% likely to be at this place. \n\n #### Declaration\n\n Swift \n\n var likelihood: Double { get }\n\n Objective-C \n\n @property (nonatomic, readonly) double likelihood;\n\n- `\n ``\n ``\n `\n\n ### [-initWithPlace:likelihood:](#/c:objc(cs)GMSPlaceLikelihood(im)initWithPlace:likelihood:)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n init(place: ../Classes/GMSPlace.html, likelihood: Double)\n\n Objective-C \n\n - (instancetype)initWithPlace:(../Classes/GMSPlace.html *)place\n likelihood:(double)likelihood NS_DESIGNATED_INITIALIZER;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSPlaceLikelihood(im)init)\n\n `\n ` \n Unavailable \n Default init is not available. Please use the designated initializer. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]