GMSPlaceLikelihood.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // GMSPlaceLikelihood.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 GMSPlace;
  12. NS_ASSUME_NONNULL_BEGIN
  13. /**
  14. * Represents a |GMSPlace| and the relative likelihood of the place being the best match within the
  15. * list of returned places for a single request. For more information about place likelihoods, see
  16. * |GMSPlaceLikelihoodList|.
  17. */
  18. @interface GMSPlaceLikelihood : NSObject <NSCopying>
  19. /**
  20. * The place contained in this place likelihood.
  21. */
  22. @property(nonatomic, strong, readonly) GMSPlace *place;
  23. /**
  24. * Returns a value from 0.0 to 1.0 indicating the confidence that the user is at this place. The
  25. * larger the value the more confident we are of the place returned. For example, a likelihood of
  26. * 0.75 means that the user is at least 75% likely to be at this place.
  27. */
  28. @property(nonatomic, assign, readonly) double likelihood;
  29. - (instancetype)initWithPlace:(GMSPlace *)place
  30. likelihood:(double)likelihood NS_DESIGNATED_INITIALIZER;
  31. /**
  32. * Default init is not available. Please use the designated initializer.
  33. */
  34. - (instancetype)init NS_UNAVAILABLE;
  35. @end
  36. NS_ASSUME_NONNULL_END