Google Maps API V3错误:403(禁止访问太多网页浏览量) [英] Google Maps API V3 error: 403 (Forbidden access for too many pageviews)

查看:521
本文介绍了Google Maps API V3错误:403(禁止访问太多网页浏览量)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Maps Engine中有一个已发布的图层,我试图使用Google Maps V3 API进行显示。在GME中,图层的共享访问列表包含我的用户,API访问访问列表也包含在用户中。



我正在制作Maps V3 API调用使用可视化库中的MapsEngineLayer,并将相应的认证令牌和图层资产ID设置为layerOptions的一部分。



API调用失败,出现错误消息:
Google Maps API V3错误:403(禁止访问太多网页浏览量)



该网址看起来像:



< BLOCKQUOTE>

https://earthbuilder.googleapis.com/my_gme_layer_asset_id- 4 / MAPROOT / JSON
输出= JSONP&安培;的access_token = my_auth_token&安培;回调= XDC ._ tsel5i




我已发现一些与403和禁止相关的讨论主题,但是难以弄清楚(和解决)太多综合浏览量问题的含义。



任何建议都将不胜感激。

解决方案

您今天到目前为止,Maps API上的使用限制可能会阻止您请求任何进一步的数据。

https://developers.google.com/maps/faq#usagelimits



尽管你不太可能已经达到了硬件设置 25,000 的要求,但你可能要确保你不会意外用http请求对它们进行处理。这样的事情总是会超越你的限制,并有可能将你的IP放在黑名单上。



另外,您应该检查Maps API参考资料,我认为您可能会尝试使用弃用的API。



https://developers.google.com/maps/文档/ webservices



您的http请求应该看起来更像这样:

  http://maps.googleapis.com/maps/api/service/output?parameters 

其中输出 json xml

编辑:Google地图API帮助页面位于在这里


I have a published layer in Google Maps Engine that I am attempting to display using the Google Maps V3 API. In GME, the layer's "Shared with" access list includes my user and the "API access" access list also includes by user.

I am making the Maps V3 API call using MapsEngineLayer from the visualization library, and setting the appropriate auth token and layer asset id as part of the layerOptions.

The API call is failing with the error message: Google Maps API V3 error: 403 (Forbidden access for too many pageviews)

The URL looks like:

https://earthbuilder.googleapis.com/my_gme_layer_asset_id-4/maproot/json? output=jsonp&access_token=my_auth_token&callback=xdc._tsel5i

I have found some discussion threads related to "403" and "forbidden", but am having difficulty figuring out the meaning of (and solution to) the "too many pageviews" issue.

Any suggestions would be appreciated.

解决方案

How many requests have you made so far today, there are usage limits on the Maps API that may be preventing you from requesting any further data.

https://developers.google.com/maps/faq#usagelimits

Although it does seem unlikely that you have hit their hard set 25,000 requests, you may want to make sure that you aren't accidentally DOSing them with http requests. That sort of thing will invariably burn through your limit, and potentially place your IP on a blacklist.

Also, you should check the Maps API Reference materials, i think you may be trying to use a deprecated API.

https://developers.google.com/maps/documentation/webservices

Your http request should look more like this:

http://maps.googleapis.com/maps/api/service/output?parameters

Where output is either json or xml.

edit: The Maps API Help page is located here.

这篇关于Google Maps API V3错误:403(禁止访问太多网页浏览量)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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