I am using Google Map API to get the Latitudes and Longitude of near By ATM. I have get Google API key by my Google credentials. I am requesting by my app with Code
NSString *url = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search /json?location=%f,%f&radius=%@&types=%@&sensor=true&key=%@", currentCentre.latitude, currentCentre.longitude, [NSString stringWithFormat:@"%i", currenDist], googleType, kGOOGLE_API_KEY];
NSURL *googleRequestURL=[NSURL URLWithString:url];
NSData* data = [NSData dataWithContentsOfURL: googleRequestURL];
NSDictionary* json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
and I am getting
{
"debug_info" = (
);
"html_attributions" = (
);
results = (
);
status = "REQUEST_DENIED";
} as response.
please let me know what to do??