GMSPlaceLikelihood.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // GMSPlaceLikelihood.h
  3. // Google Maps SDK for iOS
  4. //
  5. // Copyright 2014 Google Inc.
  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. @class GMSPlace;
  11. /**
  12. * Represents a |GMSPlace| and the relative likelihood of the place being the best match within the
  13. * list of returned places for a single request. For more information about place likelihoods, see
  14. * |GMSPlaceLikelihoodList|.
  15. */
  16. @interface GMSPlaceLikelihood : NSObject<NSCopying>
  17. /**
  18. * The place contained in this place likelihood.
  19. */
  20. @property(nonatomic, strong, readonly) GMSPlace *place;
  21. /**
  22. * Returns a value from 0.0 to 1.0 indicating the confidence that the user is at this place. The
  23. * larger the value the more confident we are of the place returned. For example, a likelihood of
  24. * 0.75 means that the user is at least 75% likely to be at this place.
  25. */
  26. @property(nonatomic, assign, readonly) double likelihood;
  27. - (instancetype)initWithPlace:(GMSPlace *)place likelihood:(double)likelihood;
  28. @end