GMSPlaceLikelihoodList.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // GMSPlaceLikelihoodList.h
  3. // Google Places SDK for iOS
  4. //
  5. // Copyright 2016 Google LLC
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <Foundation/Foundation.h>
  11. @class GMSPlaceLikelihood;
  12. NS_ASSUME_NONNULL_BEGIN
  13. /**
  14. * Represents a list of places with an associated likelihood for the place being the correct place.
  15. * For example, the Places service may be uncertain what the true Place is, but think it 55% likely
  16. * to be PlaceA, and 35% likely to be PlaceB. The corresponding likelihood list has two members, one
  17. * with likelihood 0.55 and the other with likelihood 0.35. The likelihoods are not guaranteed to be
  18. * correct, and in a given place likelihood list they may not sum to 1.0.
  19. */
  20. @interface GMSPlaceLikelihoodList : NSObject
  21. /** An array of likelihoods, sorted in descending order. */
  22. @property(nonatomic, copy) NSArray<GMSPlaceLikelihood *> *likelihoods;
  23. /**
  24. * The data provider attribution strings for the likelihood list.
  25. *
  26. * These are provided as a NSAttributedString, which may contain hyperlinks to the website of each
  27. * provider.
  28. *
  29. * In general, these must be shown to the user if data from this likelihood list is shown, as
  30. * described in the Places SDK Terms of Service.
  31. */
  32. @property(nonatomic, copy, readonly, nullable) NSAttributedString *attributions;
  33. @end
  34. NS_ASSUME_NONNULL_END