使用谷歌商家信息自动填充API REQUEST_DENIED响应 [英] REQUEST_DENIED response using Google Places Autocomplete API

查看:449
本文介绍了使用谷歌商家信息自动填充API REQUEST_DENIED响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,它使用谷歌的地方自动完成API Android应用程序。

I am working on android app which uses google's places autocomplete API.

当试图打以下网址

<一个href=\"https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types=geo$c$c&sensor=false&language=en&key=apiKey\" rel=\"nofollow\">https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types=geo$c$c&sensor=false&language=en&key=apiKey

我得到了如下答复。

{
    predictions:[],
    状态:REQUEST_DENIED
}

{ "predictions" : [], "status" : "REQUEST_DENIED" }

我从以下链接API密钥
谷歌API的控制台

I got the API key from link below Google APIs console

我也启用了谷歌地图API V3服务。
根据API文档REQUEST_DENIED反应一般是由于缺乏,我已经提供了传感器的参数却。
直接在浏览器中打上面的URL后还我收到REQUEST_DENIED响应。
什么我有什么关系?

also i have enabled Google Maps API v3 service. As per API documentation REQUEST_DENIED response is generally due to lack of sensor parameter but which i have already provided. After hitting above URL directly in browser also i am getting REQUEST_DENIED response. Is anything else i have to do?

推荐答案

您确定您的关键是正确的,你已经留下了足够的配额?尝试生成一个新的密钥,并检查您有正确的转介/设置为空。

Are you sure your key is correct and that you have enough quota left? Try generating a new key and checking that you have the referrals correct/set to empty.

您可能还需要等待长达5分钟的关键,成为活跃。

You also may need to wait up to 5 minutes for the key to become active.

FWIW我用我自己的键测试你的网址,它工作得很好。

FWIW I tested your URL with my own key and it worked fine.

这篇关于使用谷歌商家信息自动填充API REQUEST_DENIED响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆