Google Maps API服务器拒绝了您的请求 [英] The Google Maps API server rejected your request
问题描述
< img alt =Google地图(Scotland)src =http://maps.google.com/staticmap?size=480x200&maptype=mobile\&markers=55.9368450758,-3.03604939504,reda|55.9454374538,-3.18124534297,redb&安培;键= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
地图没有被渲染,当我右击图像源并点击url时,我收到以下消息:
Google地图API服务器拒绝了您的请求,此网站或IP无权使用此API密钥。
我检查了 https://code.google.com / apis / console API密钥似乎都是正确的。只是想知道如何解决网站和IP位?
请参阅下面的谷歌API控制台中的设置
< img src =https://i.stack.imgur.com/JCD3z.pngalt =在这里输入图片描述>
确保您已启用静态地图API服务以及Google地图API。
I m working on an application which renders google maps on an image as below
<img alt="Google Maps (Scotland)" src="http://maps.google.com/staticmap?size=480x200&maptype=mobile\&markers=55.9368450758,-3.03604939504,reda|55.9454374538,-3.18124534297,redb&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
The map is not getting rendered and when I right click on the source of image and click the url, I get the following message
"The Google Maps API server rejected your request. This site or IP is not authorized to use this API key."
I have checked the API Access on https://code.google.com/apis/console the API key seems to be all correct. Just wondering how to fix the site and IP bit?
See below the settings in google API console
Make sure you have enabled "Static Maps API" service in addition to "Google Maps API".
这篇关于Google Maps API服务器拒绝了您的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!