百度地图反地理编码

  BMKReverseGeoCodeOption *reverseGeoCodeSearchOption = [[BMKReverseGeoCodeOption alloc] init];
    
    reverseGeoCodeSearchOption.reverseGeoPoint = self.mapView.centerCoordinate;

  _geoCodeSearch =[[BMKGeoCodeSearch alloc]init];
  _geoCodeSearch.delegate = self;
 BOOL flag = [_geoCodeSearch reverseGeoCode:reverseGeoCodeSearchOption];
    if(flag){

        NSLog(@"_geoCodeSearch成功");
     
    }
    else{
        NSLog(@"_geoCodeSearch失败");
    }
**
 *返回反地理编码搜索结果
 *@param searcher 搜索对象
 *@param result 搜索结果
 *@param error 错误号,@see BMKSearchErrorCode
 */
- (void)onGetReverseGeoCodeResult:(BMKGeoCodeSearch *)searcher result:(BMKReverseGeoCodeResult *)result errorCode:(BMKSearchErrorCode)error{
    
    if (error  == BMK_SEARCH_NO_ERROR) {
         
        
          NSLog(@"_geoCodeSearch成功");
    }
    else{
    }
}

返回结果


poiList.png

你可能感兴趣的:(百度地图反地理编码)