【求助】地理编码错误代码100是什么意思
百度地图吧
全部回复
仅看楼主
level 2
g0302zhuw 楼主
代码如下:
BMKSearch *_search = [[BMKSearch alloc]init];
_search.delegate = self;
//发起反地理编码
CLLocationCoordinate2D pt = (CLLocationCoordinate2D){106.520106, 29.622677};
[_search reverseGeocode:pt];
- (void)onGetAddrResult:(BMKAddrInfo*)result errorCode:(int)error{
// 在此处添加您对反地理编码结果的处理
if (error == 0) {
BMKGeocoderAddressComponent *cityInfo = result.addressComponent;
NSLog(@"%@",cityInfo.province);
NSLog(@"%@",cityInfo.city);
NSLog(@"%@",cityInfo.district);
NSLog(@"%@",cityInfo.streetName);
NSLog(@"%@",result.strAddr);
}else{
NSLog(@"error:%d",error);
}
}
一直返回的错误代码是100,不知道怎么回事,求助啊[泪奔]
2013年11月11日 02点11分 1
1