如何修复错误"您已经超出了这个API&QUOT你每天的请求限额;在XML文件中谷歌地图? [英] how to fix error "You have exceeded your daily request quota for this API" in xml file google maps?

查看:3659
本文介绍了如何修复错误"您已经超出了这个API&QUOT你每天的请求限额;在XML文件中谷歌地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试使用此链接获取路线<一个href=\"http://maps.googleapis.com/maps/api/directions/xml?origin=10.933952,106.863352&destination=10.9490721,106.8574901&sensor=false&units=metric&mode=wailing&metric=1\" rel=\"nofollow\">http://maps.googleapis.com/maps/api/directions/xml?origin=10.933952,106.863352&destination=10.9490721,106.8574901&sensor=false&units=metric&mode=wailing&metric=1\"但今天它不工作

请帮助我!

 &LT; D​​irectionsResponse&GT;
  &LT;状态&gt;&OVER_QUERY_LIMIT LT; /状态&gt;
&LT;&ERROR_MESSAGE GT;
  您已经超出了这个API你的日常请求限额。
&LT; / ERROR_MESSAGE&GT;
&LT; / DirectionsResponse&GT;


解决方案

https://developers.google.com/maps/documentation/business/articles/usage_limits#limitexceeded


  

您可以通过超过谷歌地图API的Web服务使用限制

 每天发送太多的要求。
发送请求过快,每秒即太多的请求。
发送请求过快过久或滥用Web服务。
超过其他使用限制,例如每高程API请求中百分点。


在接收到状态code OVER_QUERY_LIMIT的回应,您的应用程序应该确定哪些使用限制已经被超过。这可以通过暂停2秒和重新发送相同的请求来完成。如果状态code仍然是OVER_QUERY_LIMIT,您的应用程序每天发送太多的请求。否则,你的应用程序每秒发送过多的请求。

i was try use this link to get direction "http://maps.googleapis.com/maps/api/directions/xml?origin=10.933952,106.863352&destination=10.9490721,106.8574901&sensor=false&units=metric&mode=wailing&metric=1" but today it not working

please help me!!

<DirectionsResponse>
  <status>OVER_QUERY_LIMIT</status>
<error_message>
  You have exceeded your daily request quota for this API.
</error_message>
</DirectionsResponse>

解决方案

https://developers.google.com/maps/documentation/business/articles/usage_limits#limitexceeded

You can exceed the Google Maps API Web Services usage limits by:

Sending too many requests per day.
Sending requests too fast, i.e. too many requests per second.
Sending requests too fast for too long or otherwise abusing the web service.
Exceeding other usage limits, e.g. points per request in the Elevation API.

Upon receiving a response with status code OVER_QUERY_LIMIT, your application should determine which usage limit has been exceeded. This can be done by pausing for 2 seconds and resending the same request. If status code is still OVER_QUERY_LIMIT, your application is sending too many requests per day. Otherwise, your application is sending too many requests per second.

这篇关于如何修复错误&QUOT;您已经超出了这个API&QUOT你每天的请求限额;在XML文件中谷歌地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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