MBXLocation.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /** Location information. */
  4. NS_SWIFT_NAME(Location)
  5. __attribute__((visibility ("default")))
  6. @interface MBXLocation : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithLatitude:(double)latitude
  12. longitude:(double)longitude
  13. timestamp:(uint64_t)timestamp
  14. monotonicTimestamp:(nullable NSNumber *)monotonicTimestamp
  15. altitude:(nullable NSNumber *)altitude
  16. horizontalAccuracy:(nullable NSNumber *)horizontalAccuracy
  17. verticalAccuracy:(nullable NSNumber *)verticalAccuracy
  18. speed:(nullable NSNumber *)speed
  19. speedAccuracy:(nullable NSNumber *)speedAccuracy
  20. bearing:(nullable NSNumber *)bearing
  21. bearingAccuracy:(nullable NSNumber *)bearingAccuracy
  22. floor:(nullable NSNumber *)floor
  23. source:(nullable NSString *)source
  24. extra:(nullable id)extra;
  25. /** The north–south position of a point on the Earth's surface, in decimal degrees (WGS84). */
  26. @property (nonatomic, readonly) double latitude;
  27. /** The east–west position of a point on the Earth's surface, in decimal degrees (WGS84). */
  28. @property (nonatomic, readonly) double longitude;
  29. /** The UTC time of this location fix, in milliseconds since epoch (January 1, 1970). */
  30. @property (nonatomic, readonly) uint64_t timestamp;
  31. /** The monotonic timestamp, in nanoseconds. */
  32. @property (nonatomic, readwrite, nullable) NSNumber *monotonicTimestamp;
  33. /** The altitude of the location in meters above the WGS84 reference ellipsoid. */
  34. @property (nonatomic, readwrite, nullable) NSNumber *altitude;
  35. /** The estimated horizontal accuracy of this location, radial, in meters. */
  36. @property (nonatomic, readwrite, nullable) NSNumber *horizontalAccuracy;
  37. /** The estimated vertical accuracy of this location, in meters. */
  38. @property (nonatomic, readwrite, nullable) NSNumber *verticalAccuracy;
  39. /** The instantaneous speed of the device, measured in meters/second over ground. */
  40. @property (nonatomic, readwrite, nullable) NSNumber *speed;
  41. /** The estimated speed accuracy of this location, in meters/second. */
  42. @property (nonatomic, readwrite, nullable) NSNumber *speedAccuracy;
  43. /** The GNSS bearing, in degrees. */
  44. @property (nonatomic, readwrite, nullable) NSNumber *bearing;
  45. /** The estimated bearing accuracy of this location, in degrees. */
  46. @property (nonatomic, readwrite, nullable) NSNumber *bearingAccuracy;
  47. /**
  48. * The logical floor of the building.
  49. *
  50. * Note that 0 zero indicates the ground floor, negative values
  51. * indicate underground floors and positive values indicate floors
  52. * above ground level.
  53. */
  54. @property (nonatomic, readwrite, nullable) NSNumber *floor;
  55. /** The source that provides this location */
  56. @property (nonatomic, readwrite, nullable, copy) NSString *source;
  57. /** Additional information */
  58. @property (nonatomic, readonly, nullable, copy) id extra;
  59. @end