FIRVisionLatitudeLongitude.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /**
  4. * An object representing a latitude/longitude pair. This is expressed as a pair of doubles
  5. * representing degrees latitude and degrees longitude. Unless specified otherwise, this must
  6. * conform to the <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
  7. * standard</a>. Values must be within normalized ranges.
  8. */
  9. NS_SWIFT_NAME(VisionLatitudeLongitude)
  10. @interface FIRVisionLatitudeLongitude : NSObject
  11. /**
  12. * The latitude in degrees. It must be in the range [-90.0, +90.0]. The value is double.
  13. */
  14. @property(nonatomic, nullable) NSNumber *latitude;
  15. /**
  16. * The longitude in degrees. It must be in the range [-180.0, +180.0]. The value is double.
  17. */
  18. @property(nonatomic, nullable) NSNumber *longitude;
  19. /**
  20. * Initializes a VisionLatitudeLongitude with the given latitude and longitude.
  21. *
  22. * @param latitude Latitude of the location. The value is double.
  23. * @param longitude Longitude of the location. The value is double.
  24. * @return A VisionLatitudeLongitude instance with the given latigude and longitude.
  25. */
  26. - (instancetype)initWithLatitude:(nullable NSNumber *)latitude
  27. longitude:(nullable NSNumber *)longitude NS_DESIGNATED_INITIALIZER;
  28. /**
  29. * Unavailable.
  30. */
  31. - (instancetype)init NS_UNAVAILABLE;
  32. @end
  33. NS_ASSUME_NONNULL_END