I am using Google Places API for my iOS application.I have enabled Google Maps Android API v2, Places API from API Console.Create an iOS key in API access section. I am making a request to the Google Places API, using the following code:
NSString *finalString = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json?location=%f,%f&radius=5000&keyword=restaurants&sensor=false&key=PASTE_GENERATED_KEY_HERE",_location.coordinate.latitude,_location.coordinate.longitude];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:finalString]];
But I am getting following in JSON Response
{
"debug_info" = (
);
"html_attributions" = (
);
results = (
);
status = "REQUEST_DENIED";
}
I have regenerated the new key which is not working as well. Can someone please figure out what I am doing wrong here.