123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // LocationManage.h
- // MIT_Endorsement
- //
- // Created by 翟玉磊 on 2018/2/8.
- // Copyright © 2018年 翟玉磊. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <AMapFoundationKit/AMapFoundationKit.h>
- #import <AMapLocationKit/AMapLocationKit.h>
- @interface LocationManage : NSObject
- /**
- 定位回调 rgcData定位信息
- */
- @property (nonatomic, copy) void(^didLocationCompletionBlock)(AMapLocationReGeocode *geocode);
- /// 定位权限状态改变回调
- @property (nonatomic, copy) void(^didLocationStatusChangeBlock)(CLAuthorizationStatus status);
- /// 当前的定位状态
- @property (nonatomic, readwrite, assign) CLAuthorizationStatus currentStatus;
- /// 定位后的经纬度
- @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
- /// 定位城市行政id
- @property (nonatomic, readonly, copy) NSString *currentAreaId;
- @property (nonatomic, readwrite, copy) NSString *locationFullAddress;
- + (instancetype)sharedInstance;
- /**
- 开始定位
- */
- - (void)startSingleLocation;
- - (void)startContinuousLocation;
- /**
- 停止定位
- */
- - (void)stopLoaction;
- /// 导航 判断对应的地图 是否可以跳转
- + (void)navigationActionWithCoordinate:(CLLocationCoordinate2D)coordinate loactionName:(NSString *)loactionName presentController:(UIViewController *)presentController;
- /// 跳转苹果地图导航
- + (void)navAppleMapWithCoordinate:(CLLocationCoordinate2D)coordinate loactionName:(NSString *)loactionName;
- @end
|