- (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 |
开始更新位置, startUpdate 不能先后连续执行两次,中间必须间隔一个 stopUpdate
- (CLLocation*) currentLocation |
|
readwritenonatomicstrong |
当前位置,当前仅当gpsFromExternal=YES有效。当外部设置需要自定义gps数据时,可以通过设置该属性。
|
readwriteoptionalnonatomicassign |
gps点是否来自外部,默认为NO,位置信息从iOS设备的gps模块获取。设置为YES时,gps的信息从currentLocation中获取
The documentation for this protocol was generated from the following file: