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
Swift
var likelihoods: [GMSPlaceLikelihood] { get set }
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;