Ich habe bereits GoogleAutocomplete Suche API für ein bestimmtes Land sagen Bangladesch. Jetzt möchte ich es für Dhaka City, eine Stadt von Bangladesch, einschränken. Mein Code bereitgestellt unterBeschränken GoogleAutocomplete Suche API für eine bestimmte Stadt in Objective C
APICommunicator *api = [[APICommunicator alloc] init];
_searchTermArray=[[NSMutableArray alloc]init];
NSDictionary *arr = [api getGoogleAPIArrByPOST:[NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/autocomplete/json?input=%@®ion=BD&components=country:BD&types=geocode&key=%@",searchTerms,API_KEY]parameter:nil];
NSString *areaName;
for (areaName in arr) {
_searchTermArray=[[arr valueForKey:@"predictions"]valueForKey:@"description"];
}
Bitte lassen Sie mich wissen, wie oder Code, wie es für die Aus dieser documentation