ios - GMSGeocoder - how to set response language -
when using app in foreign country, google gmsgeocoder
returning response in local language automatically. how can set return the response in english?
im using gms sdk 1.7 , code this:
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 = @""; } }];
Comments
Post a Comment