//地理编码处理,这里将获得定位的地标,也就是可以获得这个点的所有内容。
typedef void (^CLGeocodeCompletionHandler)(NSArray *placemarks, NSError *error);
//一个block类型的值
//继承于NSObject
@interface CLGeocoder : NSObject
{
CLGeocoderInternal *_internal;
}
//只是可以用来编码,只是获取的方法
//一个布尔值,指示是否接收的编码值的中间。
@property (nonatomic, readonly, getter=isGeocoding) BOOL geocoding;
//反编码的请求 ()通过经纬度来查找有关的地理位置,也就是字符串或者其他的文字信息
- (void)reverseGeocodeLocation:(CLLocation *)location completionHandler:(CLGeocodeCompletionHandler)completionHandler;
//有关的地理信息编码的方法:
//通过 指定一个地址信息的对象进行编码
- (void)geocodeAddressString:(NSString *)addressString inRegion:(CLRegion *)region completionHandler:(CLGeocodeCompletionHandler)completionHandler;
//
- (void)cancelGeocode;//取消编码的请求
typedef void (^CLGeocodeCompletionHandler)(NSArray *placemarks, NSError *error);
//一个block类型的值
//继承于NSObject
@interface CLGeocoder : NSObject
{
CLGeocoderInternal *_internal;
}
//只是可以用来编码,只是获取的方法
//一个布尔值,指示是否接收的编码值的中间。
@property (nonatomic, readonly, getter=isGeocoding) BOOL geocoding;
//反编码的请求 ()通过经纬度来查找有关的地理位置,也就是字符串或者其他的文字信息
- (void)reverseGeocodeLocation:(CLLocation *)location completionHandler:(CLGeocodeCompletionHandler)completionHandler;
//有关的地理信息编码的方法:
//通过 指定一个地址信息的对象进行编码
- (void)geocodeAddressDictionary:(NSDictionary *)addressDictionary completionHandler:(CLGeocodeCompletionHandler)completionHandler;
- (void)geocodeAddressString:(NSString *)addressString completionHandler:(CLGeocodeCompletionHandler)completionHandler;
- (void)geocodeAddressString:(NSString *)addressString inRegion:(CLRegion *)region completionHandler:(CLGeocodeCompletionHandler)completionHandler;
//
- (void)cancelGeocode;//取消编码的请求