GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPlaceLikelihoodList
@interface GMSPlaceLikelihoodList : NSObject
Represents a list of places with an associated likelihood for the place being the correct place.
For example, the Places service may be uncertain what the true Place is, but think it 55% likely
to be PlaceA, and 35% likely to be PlaceB. The corresponding likelihood list has two members, one
with likelihood 0.55 and the other with likelihood 0.35. The likelihoods are not guaranteed to be
correct, and in a given place likelihood list they may not sum to 1.0.
-
An array of likelihoods, sorted in descending order.
Declaration
Objective-C
@property (nonatomic, copy) NSArray<GMSPlaceLikelihood *> *_Nonnull likelihoods;
-
The data provider attribution strings for the likelihood list.
These are provided as a NSAttributedString, which may contain hyperlinks to the website of each
provider.
In general, these must be shown to the user if data from this likelihood list is shown, as
described in the Places SDK Terms of Service.
Declaration
Swift
@NSCopying var attributions: NSAttributedString? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSAttributedString *attributions;
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\u003eGMSPlaceLikelihoodList\u003c/code\u003e represents a ranked list of possible places, each with an associated likelihood of being the correct location.\u003c/p\u003e\n"],["\u003cp\u003eLikelihoods are provided as a sorted array, with the most likely place appearing first but may not sum to 1.0 and are not guaranteed to be accurate.\u003c/p\u003e\n"],["\u003cp\u003eIf displaying data from the \u003ccode\u003eGMSPlaceLikelihoodList\u003c/code\u003e, you must display the associated attributions as outlined in the Places SDK Terms of Service.\u003c/p\u003e\n"]]],["`GMSPlaceLikelihoodList` represents a ranked list of places with associated likelihoods. These likelihoods, sorted in descending order, indicate the probability of each place being correct. The list contains an array of `likelihoods` and `attributions`, which are data provider attribution strings. Users must display these attributions if data from this list is shown, as per the Places SDK Terms of Service. Likelihoods are not guaranteed to be correct and may not sum to 1.0.\n"],null,["# GooglePlaces Framework Reference\n\nGMSPlaceLikelihoodList\n======================\n\n @interface GMSPlaceLikelihoodList : NSObject\n\nRepresents a list of places with an associated likelihood for the place being the correct place.\nFor example, the Places service may be uncertain what the true Place is, but think it 55% likely\nto be PlaceA, and 35% likely to be PlaceB. The corresponding likelihood list has two members, one\nwith likelihood 0.55 and the other with likelihood 0.35. The likelihoods are not guaranteed to be\ncorrect, and in a given place likelihood list they may not sum to 1.0.\n- `\n ``\n ``\n `\n\n ### [likelihoods](#/c:objc(cs)GMSPlaceLikelihoodList(py)likelihoods)\n\n `\n ` \n An array of likelihoods, sorted in descending order. \n\n #### Declaration\n\n Swift \n\n var likelihoods: [../Classes/GMSPlaceLikelihood.html] { get set }\n\n Objective-C \n\n @property (nonatomic, copy) NSArray\u003c../Classes/GMSPlaceLikelihood.html *\u003e *_Nonnull likelihoods;\n\n- `\n ``\n ``\n `\n\n ### [attributions](#/c:objc(cs)GMSPlaceLikelihoodList(py)attributions)\n\n `\n ` \n The data provider attribution strings for the likelihood list.\n\n These are provided as a NSAttributedString, which may contain hyperlinks to the website of each\n provider.\n\n In general, these must be shown to the user if data from this likelihood list is shown, as\n described in the Places SDK Terms of Service. \n\n #### Declaration\n\n Swift \n\n @NSCopying var attributions: NSAttributedString? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSAttributedString *attributions;"]]