我正在尝试显示具有选定类型类型的附近地点-酒吧,咖啡厅,自动柜员机等
我已经在开发人员控制台上创建了项目。启用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
];
我没有什么问题。
在API控制台中为此API启用此Google Places API Web服务和iOS版Google Places API
请参阅本文件...。
Google Places API网络服务
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句