【发布时间】:2014-05-19 10:58:15
【问题描述】:
在国外使用我的应用程序时,谷歌GMSGeocoder 会自动以当地语言返回响应。如何将其设置为始终以英文返回响应?
我使用的是 GMS SDK 1.7,我的代码是这样的:
GMSGeocoder *geoCoder = [[GMSGeocoder alloc] init];
[geoCoder reverseGeocodeCoordinate:self.cellLocation.coordinate completionHandler:^(GMSReverseGeocodeResponse *respones, NSError *err) {
if([respones firstResult]) {
GMSAddress* address = [respones firstResult];
NSString* fullAddress = [NSString stringWithFormat:@"%@, %@",address.thoroughfare, address.locality];
self.theTextField.text = fullAddress;
} else {
self.theTextField.text = @"";
}
}];
【问题讨论】:
-
我目前正在寻找相同的答案。你能解决这个问题吗?
-
还没有找到解决方案,我目前正在使用苹果 CLGeocoder 服务。 (但我发现它不太准确)
-
嗯...好的。谢谢你让我知道。我也会尝试苹果 CLGeocoder,看看效果如何。
标签: ios geocoding gmsmapview