如何验证我的Google Maps API密钥是否有效? [英] How can I verify if my google maps API key is valid?
问题描述
我正在尝试设置一个新应用程序以使用Google地图.我从另一个进行设置的队友那里获得了api密钥.我想知道是否有实用程序或其他方法来检查他给我的api密钥是否有效.使用他给我的api密钥运行应用程序时,出现以下控制台错误:
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. I am wondering if there's a utility or some other way to check if the api key he gave me is valid. I am getting the following console error when running my application using the api key he gave me:
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
推荐答案
有一个适用于此的google chrome插件: https://chrome.google.com/webstore/detail/google-maps-platform-api/mlikepnkghhlnkgeejmlkfeheihlehne
There is a google chrome addon for that: https://chrome.google.com/webstore/detail/google-maps-platform-api/mlikepnkghhlnkgeejmlkfeheihlehne
这篇关于如何验证我的Google Maps API密钥是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!