Google Maps V3 API密钥不起作用 [英] Google Maps V3 API key doesn't work

查看:148
本文介绍了Google Maps V3 API密钥不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使会议列表系统正常工作,并且已经在家里进行了测试,并且地图工作正常(IP地址以76开头).

I've gotten my meeting list system working and I've tested here at home and here the maps work fine (the IP address starting with 76).

将其部署到我的网站时,出现API错误:

When I deploy it to my website, I get the API error:

Google禁止对此应用程序使用Maps API.提供的密钥不是有效的Google API密钥,或者未经此站点上的Google Maps Javascript API v3的授权.

Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site.

我的网站是"oameetings.org".现在,这是我的"kierpro.com"主网站的附加域.它指向"kierpro.com/phone"文件夹.根据BlueHost的说法,我的IP地址是66.147.242.96.

My website is "oameetings.org". It is an add-on domain to my "kierpro.com" main website right now. It points to the "kierpro.com/phone" folder. My IP address, according to BlueHost is 66.147.242.96.

我尝试了显示的每个键,但是它们不起作用.我还尝试了每种方法的几乎所有其他变体,包括添加"www."," http://www .", "http://",但无效.

I have tried every one of the keys shown, and they do not work. I've also tried almost every other variation of each, including adding "www.", "http://www.", "http://", but nothing works.

推荐答案

问题是您正在为服务器应用程序创建密钥.那些用于直接访问Google网络服务之类的应用程序.您需要选择创建新的浏览器密钥..."按钮来为您的域创建新的密钥.看起来您在提供的链接中使用的是 http://oameetings.org ,因此,请使用该域并创建一个for kierpro.com/phone,以查看该域以外投放的所有地图.

The problem is that you are creating keys for server apps. Those are for apps directly accessing things like Google's web services. You need to select the "Create new Browser Key..." button to create a new key for your domain. Looks like you're using http://oameetings.org in the link you provided, so use that domain but also create one for kierpro.com/phone for any maps served off that domain.

这篇关于Google Maps V3 API密钥不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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