2016-06-29 6 views
0

おはよう、CodeIgniter環境でGmaps APIを見つけた場合

私はGoogleマップのapiキーを見つけるのが難しいです。私は、configファイルでBASE_URLを変更しなければならなかったし、それ以来、私は、このエラーを与える:

Google MapsのAPIエラー:MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.abをJS @ V = 3.exp & signed_in = falseを&センサー= falseを&ライブラリ=場所? &言語= EN-USA:32 util.js:211

Google MapsのAPI警告:NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys util.js:211 Google MapsのAPI警告:SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required

私の場合ページの<head>に私のAPIキーでこのタグを追加します:<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY" type="text/javascript"></script>

私はこのエラーを取得:

enter image description hereは、残念ながら、私は今、エラーのIMGを持っています。

まず最初に欠けていたものが重複していました。あなたが新しいドメインで新しいapiキーを取得しなければならないことを知っていますが、私はそれを行いましたが、どこでも見つけることができない古いAPIキーとの競合があります。どこに元の鍵があるのでしょうか?私はすべてのファイルを検索しようとしたが、鍵を見つけることができなかった。誰かが私のためのヒントを持っていますか?私は "googleapis.com"のすべてのファイルを検索しようとしました。多分私は知っていないGoogleのAPIにリンクするために他の方法があります。私は本当にこれを解決することを楽しみにしています。

はこれを読んであなたの時間をありがとうございましたし、私はエラーが述べたように、誰かが私に

よろしく theweeezel

答えて

0

を助けることを願って:

The script element that loads the API is missing the required authentication parameter. If you are using the standard Maps JavaScript API, you must use a key parameter with a valid API key. If you are a Premium Plan customer, you must use either a client parameter with your client ID or a key parameter with a valid API key.

あなたはAPI keys and client IDsへのガイドをチェックした場合。親切に作成されたAPIキーをもう一度確認し、下記のscriptタグに従ってください。

If you're using the API under the standard plan, you must use a browser key (a type of API key) set up in a project of your choice.

Specify a key when loading the API

To specify a key, include it as the value of a key parameter when loading the API.

For example:

注:

Google Maps APIs are available for Android or iOS apps, Web browsers, and via HTTP web services. APIs in each platform require a specific type of key. The Google Maps JavaScript API will only work with a Browser key. APIs of the same platform can use the same key.

この情報がお役に立てば幸いです。

関連する問題