简体   繁体   English

如何验证我的谷歌地图 API 密钥是否有效?

[英]How can I verify if my google maps API key is valid?

I am trying to set up a new application to use a google map.我正在尝试设置一个新的应用程序来使用谷歌地图。 I got the api key from another teammate who did the set up.我从另一位完成设置的队友那里获得了 api 密钥。 I am wondering if there's a utility or some other way to check if the api key he gave me is valid.我想知道是否有实用程序或其他方法来检查他给我的 api 密钥是否有效。 I am getting the following console error when running my application using the api key he gave me:使用他给我的 api 密钥运行我的应用程序时,我收到以下控制台错误:

Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error- messages#no-api-keys xw.m @ util.js:219 (anonymous) @ js?key [key]&callback=initMap:122 Promise.then (async)(anonymous) @ js?key=[key]&callback=initMap:122

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM