ios6,用高德地图CLGeocoder反向解析的街道地址怎么是英文的!怎么把地址转中文名称?而不是什么zhonghua east road,能直接显示中华东路,求技术大神们指导! 

解决方案 »

  1.   

     我在附上我的代码:
    - (void)reverseGeocode:(CLLocation *)loction
    {
         NSLog(@"is in reverseG");
        
        if (!geocoder){
            geocoder = [[CLGeocoder alloc] init];
        }        [geocoder reverseGeocodeLocation:loction completionHandler:^(NSArray* places,NSError* error){
                if (nil != error) {
                    UIAlertView *alert =
                        [[UIAlertView alloc]
                         initWithTitle:NSLocalizedString(@"error", @"eroor")
                         message:NSLocalizedString(@"did not recognize", @"did not recognize")
                         delegate:self cancelButtonTitle:NSLocalizedString(@"ok", @"ok")
                         otherButtonTitles: nil];
                    [alert show];
                }
                
                else if ([places count] > 0){
                    CLPlace *Place = [places objectAtIndex:0];
                    NSLog(@"%@,%@,%@,%@",Place.thoroughfare,Place.locality,Place.administrativeArea,Place.postalCode);
                    _label.text = Place.thoroughfare;
                }
                
            }];
          
        请各位指导
      

  2.   

    这不是高德的解析啊,这是系统的解析,用高德给的API解析就是中文的
      

  3.   

    +1,高德的API里有
      

  4.   

    谢谢回复,我会去研究高德的api;这个问题我自己解决啦。