RKLBSManager.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // RKLBSManager.h
  3. // YBVideo
  4. //
  5. // Created by YB007 on 2020/10/19.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. /**
  11. placemarks: 地标 CLPlacemark类型
  12. pcaArray: 省、市、区
  13. */
  14. typedef void (^RKLbsBlock)(NSArray<CLPlacemark *> *placemarks,NSArray <NSString *>*pcaArray);
  15. typedef void (^TencentListBlock)(NSArray *list);
  16. /// 针对海外利用经纬度获取更加精确的城市名称【需要开通海外权限】
  17. static const BOOL exactCity = NO;
  18. @interface RKLBSManager : NSObject
  19. @property (nonatomic, assign)BOOL fromEdit;
  20. +(instancetype)shareManager;
  21. -(void)startLocation;
  22. -(void)locationComplete:(RKLbsBlock)complete;
  23. #pragma mark - 打开导航软件开始
  24. -(void)showNavigationsWithLat:(NSNumber *)lat lng:(NSNumber *)lng endName:(NSString *)endName;
  25. #pragma mark - 打开导航软件结束
  26. #pragma mark - 周边
  27. -(void)txMapPoisWithCoordinate:(CLLocationCoordinate2D)coordinate andPage:(NSInteger)page complete:(TencentListBlock)locList;
  28. #pragma mark - 搜索地区
  29. -(void)txSearch:(NSString *)keys coordinate:(CLLocationCoordinate2D)coordinate andPage:(NSInteger)page complete:(TencentListBlock)locList;
  30. @end