Ios 很难靠近ATM列表

Ios 很难靠近ATM列表,ios,objective-c,google-maps,Ios,Objective C,Google Maps,我正在使用GoogleMapAPI通过ATM获得附近地区的纬度和经度。我通过我的谷歌认证获得了谷歌API密钥。我正在通过我的应用程序请求代码 NSString *url = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search /json?location=%f,%f&radius=%@&types=%@&sensor=true&key=%@", cur

我正在使用GoogleMapAPI通过ATM获得附近地区的纬度和经度。我通过我的谷歌认证获得了谷歌API密钥。我正在通过我的应用程序请求代码

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];
我越来越

{
    "debug_info" =     (
    );
    "html_attributions" =     (
    );
    results =     (
    );
    status = "REQUEST_DENIED";
} as response.

请让我知道该怎么做

我认为您需要使用Google Place API获取ATM位置,请查看下面的链接


首先删除url中不必要的空格。我的代码中没有空格,这些空格只出现在这里……我也收到了响应……但状态为“请求被拒绝”,但我有API密钥,并且已经在API访问部分启用了place API和Google MAP。你能发布你的最终url吗?我也在以同样的方式使用。我正在使用API密钥使请求格式正确。我已使用我的Google凭据启用所有所需的访问权限,但未得到status=“REQUEST\u DENIED”的响应。