AMapLocation.h 818 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // AMapLocation.h
  3. // amap_flutter_map
  4. //
  5. // Created by lly on 2020/11/12.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <CoreLocation/CoreLocation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class MAUserLocation;
  11. @interface AMapLocation : NSObject
  12. ///定位提供者
  13. ///
  14. ///iOS平台只会返回'iOS'
  15. @property (nonatomic, copy) NSString *provider;
  16. ///经纬度
  17. @property (nonatomic, assign) CLLocationCoordinate2D latLng;
  18. ///水平精确度
  19. @property (nonatomic, assign) double accuracy;
  20. ///海拔
  21. @property (nonatomic, assign) double altitude;
  22. ///角度
  23. @property (nonatomic, assign) double bearing;
  24. ///速度
  25. @property (nonatomic, assign) double speed;
  26. ///定位时间,单位:毫秒
  27. @property (nonatomic, assign) double time;
  28. - (void)updateWithUserLocation:(CLLocation *)location;
  29. @end
  30. NS_ASSUME_NONNULL_END