TencentLBSLocationUtils.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // TencentLBSLocationUtils.h
  3. // TencentLBS
  4. //
  5. // Created by mirantslu on 16/8/11.
  6. // Copyright © 2016年 Tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. @class TencentLBSLocation;
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface TencentLBSLocationUtils : NSObject
  13. + (double)distanceBetweenTwoCoordinate2D:(const CLLocationCoordinate2D *)coordinate coordinateTwo:(const CLLocationCoordinate2D *)coordinate2;
  14. + (double)distanceBetweenTwoCLLocations:(const CLLocation *)location locationTwo:(const CLLocation *)location2;
  15. + (double)distanceBetweenTwoTencentLBSLocations:(const TencentLBSLocation *)location locationTwo:(const TencentLBSLocation *)location2;
  16. // 参数add表示是否要包括台湾,YES为包括, NO不包括
  17. + (BOOL) isInRegionWithLatitude:(double)latitude longitude:(double)longitude addTaiwan:(BOOL)add;
  18. + (CLLocationCoordinate2D)WGS84TOGCJ02:(CLLocationCoordinate2D)coordinate;
  19. @end
  20. @interface TencentLBSServiceManager : NSObject
  21. /**
  22. * 设置ID,如QQ号,微信号或是其他的登录账号,可用在发布前联调使用
  23. */
  24. @property (atomic, copy) NSString *deviceID;
  25. + (instancetype)sharedInsance;
  26. @end
  27. NS_ASSUME_NONNULL_END