百度导航SDK for iOS类参考
 All Classes Functions Properties
Instance Methods | Properties | List of all members
<BNLocationManagerProtocol> Protocol Reference
Inheritance diagram for <BNLocationManagerProtocol>:

Instance Methods

(void) - startUpdate
 
(void) - stopUpdate
 
(CLLocation *) - getLastLocation
 
(void) - getCityIDByLocation:sucess:fail:
 

Properties

BOOL gpsFromExternal
 
CLLocation * currentLocation
 

Method Documentation

- (void) getCityIDByLocation: (CLLocationCoordinate2D)  location
sucess: (void(^)(int))  sucess
fail: (void(^)(void))  fail 
required

获取城市ID

Parameters
location要获取城市ID的定位点,wgs84ll坐标
success启动成功后回调 success block
fail启动失败后回调 fail block
- (CLLocation *) getLastLocation
required

获取最后一次成功定位的位置

- (void) startUpdate
required

开始更新位置, startUpdate 不能先后连续执行两次,中间必须间隔一个 stopUpdate

- (void) stopUpdate
required

停止更新位置

Property Documentation

- (CLLocation*) currentLocation
readwritenonatomicstrong

当前位置,当前仅当gpsFromExternal=YES有效。当外部设置需要自定义gps数据时,可以通过设置该属性。

- (BOOL) gpsFromExternal
readwriteoptionalnonatomicassign

gps点是否来自外部,默认为NO,位置信息从iOS设备的gps模块获取。设置为YES时,gps的信息从currentLocation中获取


The documentation for this protocol was generated from the following file: