定位管理接口
更多...
#import <BNLocationManagerProtocol.h>
◆ getCityIDByLocation:sucess:fail:
- (void) getCityIDByLocation: |
|
(CLLocationCoordinate2D) |
location |
sucess: |
|
(void(^)(int)) |
success |
fail: |
|
(void(^)(void)) |
fail |
|
|
| |
|
required |
获取城市ID
- 参数
-
location | 要获取城市ID的定位点,wgs84ll坐标 |
success | 启动成功后回调 success block |
fail | 启动失败后回调 fail block |
◆ getLastLocation
- (CLLocation *) getLastLocation |
|
|
|
|
required |
◆ startUpdate
开始更新位置, startUpdate 不能先后连续执行两次,中间必须间隔一个 stopUpdate
◆ stopUpdate
◆ currentLocation
- (CLLocation*) currentLocation |
|
readwritenonatomicstrong |
◆ gpsFromExternal
|
readwriteoptionalnonatomicassign |
该协议的文档由以下文件生成: