Try using this code. It can help you.
URLManager *urlmanager = [[URLManager alloc] init];
urlmanager.delegate = self;
urlmanager.responseType = JSON_TYPE;
urlmanager.commandName = @"Search";
NSString *locationString = [NSString stringWithFormat:@"%f,%f",latitude,longitude];
NSString *key = @"AIzaSyCNRpero6aM451X0IfgFHAd-Y3eJUssqoa8`enter code here`0E";
NSString *radiuos = @"15000";
NSString *keyword = @"Hotel";
NSMutableDictionary *arguments = [[NSMutableDictionary alloc] init];
[arguments setValue:key forKey:@"key"];
[arguments setValue:locationString forKey:@"location"];
[arguments setValue:radiuos forKey:@"radius"];
[arguments setValue:@"true" forKey:@"sensor"];
[arguments setValue:keyword forKey:@"keyword"];
NSLog(@"Arguments are %@",arguments);
[urlmanager urlCallGetMethod:[NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json"] withParameters:arguments];
source
share