无法靠近ATM列表

时间:2013-12-20 05:19:14

标签: ios objective-c google-maps

我正在使用Google Map API获取靠近ATM的纬度和经度。我的Google凭据已获得Google 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.
请告诉我该怎么做?

1 个答案:

答案 0 :(得分:0)

我认为您需要使用Google Place API来获取ATM位置以查找下面的链接

How to get 20+ result from Google Places API?