7 search ios google-places-api
我试图显示选定类型类型附近的地方 - 酒吧,咖啡厅,ATM等
我在开发者控制台上创建了项目.启用API(google places api,google map sdk,direction api)
我创建了iOS api密钥,但Api密钥无效.我收到此错误消息
此IP,站点或移动应用程序无权使用此API密钥.从IP地址114.143.244.10收到的请求,空引用
当我尝试浏览器api密钥时出现此错误
此API项目无权使用此API.请确保在API控制台中激活此API:了解详情:https://code.google.com/apis/console
我正在使用这个网址
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
    ];
Run Code Online (Sandbox Code Playgroud)
我没有得到什么问题.
在 API 控制台中启用此 api Google Places API Web 服务和适用于 iOS 的 Google Places API
参考这个文档....
Google Places API 网络服务
https://developers.google.com/places/webservice/search
|   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           3483 次  |  
        
|   最近记录:  |