使用google maps api时出错:该API项目无权使用此API [英] getting error using google maps api : This API project is not authorized to use this API

查看:401
本文介绍了使用google maps api时出错:该API项目无权使用此API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Maps请求将转到Google Maps Api(javascript). 但我收到此错误消息

The google maps request is going to the Google Maps Api (javascript). But I am getting this error message

是的,并且启用了Google Maps api,并且我生成了我在代码中使用的密钥. 但是出现此错误此API项目无权使用此API",以下屏幕截图

And yes the google maps api is enabled and I have generated a key that I am using in my code. But getting this error "This API project is not authorized to use this API", screenshot below

推荐答案

根据2016年6月22日宣布的最新更改

According to the recent changes announced on June 22, 2016

我们现在将Google Maps JavaScript API客户端请求计入关联的Web服务API的每日限制.*

We now count Google Maps JavaScript API client-side requests towards the daily limit of the associated web service API.*

http://googlegeodevelopers. blogspot.com.es/2016/06/building-for-scale-updates-to-google.html

这意味着,如果您使用Maps JavaScript API的地理编码服务,则必须在项目中启用地理编码API.如果您使用地方信息库,则必须启用地方信息API等等.

That means you have to enable Geocoding API in your project if you use geocoding service of Maps JavaScript API. If you use places library, you have to enable Places API and so on.

这篇关于使用google maps api时出错:该API项目无权使用此API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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