GMSPlaceViewportInfo.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // GMSPlaceViewportInfo.h
  3. // Google Places SDK for iOS
  4. //
  5. // Copyright 2020 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 <CoreLocation/CoreLocation.h>
  11. /**
  12. * GMSPlaceViewportInfo represents a rectangular bounding box on the Earth's surface.
  13. * GMSPlaceViewportInfo is immutable and can't be modified after construction.
  14. */
  15. @interface GMSPlaceViewportInfo : NSObject
  16. /** The North-East corner of these bounds. */
  17. @property(nonatomic, readonly) CLLocationCoordinate2D northEast;
  18. /** The South-West corner of these bounds. */
  19. @property(nonatomic, readonly) CLLocationCoordinate2D southWest;
  20. /**
  21. * Returns NO if this bounds does not contain any points. For example,
  22. * [[GMSPlaceViewportInfo alloc] init].valid == NO.
  23. */
  24. @property(nonatomic, readonly, getter=isValid) BOOL valid;
  25. /**
  26. * Inits the northEast and southWest bounds corresponding to the rectangular region defined by the
  27. * two corners.
  28. *
  29. * @param northEast The North-East corner of these bounds.
  30. * @param southWest The South-West corner of these bounds
  31. */
  32. - (id)initWithNorthEast:(CLLocationCoordinate2D)northEast
  33. southWest:(CLLocationCoordinate2D)southWest;
  34. @end