Google Maps API v3 API键 [英] Google Maps API v3 api key

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

问题描述

我在写一个cordova应用程式,我在使用Google Maps API V3。
由于这将在每个用户的web视图中本地运行,我假设我需要为google地图api创建一个api键。

i am writing a cordova app, where i am using Google Maps API V3. Since this is going to run locally in a web view for each user, i assume that i need to create an api key for google maps api.

I昨天创建了一个新的浏览器键,我把所有可能的网址引用:
*
127.0.0.1/*
localhost
localhost:7000

I created a new browser key last night, and i put in the referrers all possible urls: * 127.0.0.1/* localhost localhost:7000

但每次我使用它,我得到一个错误说:
Google已禁止在此应用程序使用Maps API。

but everytime i use it, i get an error saying: Google has disabled use of the Maps API for this application.

我不想使用解决方法来简单地删除密钥,任何线索?

I don't want to use the workaround to simply remove the key, any clues?

推荐答案

问题已经回答了,所以这是我的解决方案。
生成密钥并删除所有Referers(即使是*)后,转到Google Maps JavaScript API并启用api。

I´not sure if the question is already answered, so this is my solution. After generate the key and remove all the Referers even "*", Go to Google Maps JavaScript API and enable the api.

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

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