Obtendo o status "REQUEST_DENIED" depois de buscar dados da API do Google Places
Eu fiz isso
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://maps.googleapis.com/maps/api/place/search/json?location=30.722322,76.76126&radius=500&types=food&sensor=true&key=any_apiKey"]];
NSURLResponse *response;
NSError *error;
NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSString *strResponse = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
NSLog(@"%@",strResponse);
SBJSON *sbJason = [[SBJSON alloc] init];
NSMutableDictionary *getPlaceList = [sbJason objectWithString:strResponse];
// Mas eu estou recebendo isso-
{
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
** Existe algum problema com a chave de API eu escrevi a chave de API dada pelo google map. Existe algum problema com a chave de API ou o que por favor me diga aqui é olink do google api