YAHOO api地理编码-超出限制的错误代码或作为JSONObject检索到的ErrorMessage的限制是什么? [英] YAHOO api geocode - What is the limit exceeded error code or ErrorMessage retrieved as a JSONObject?
本文介绍了YAHOO api地理编码-超出限制的错误代码或作为JSONObject检索到的ErrorMessage的限制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在用于地址解析地址的应用程序中使用Yahoo地理编码api,每次超出地理编码限制时我都需要记录.请通过解析JSONObject响应告诉我应该查询什么错误代码或错误消息.
I use Yahoo geocode api in an application for geocoding addresses and i need to log every time the geocoding limit is exceeded. Please tell me what error code or error message should i query, by parsing the JSONObject response.
推荐答案
据我所知,当超出速率限制时,您将获得"403 Forbidden"作为响应.另外,我得到以下XML:
As far as I can see it, you get a "403 Forbidden" as a response when exceeding the rate limit. Additionally I get the following XML:
<?xml
<Error>
xmlns="urn:yahoo:api"
The following errors were detected:\r\n\t\t
<Message>
limit exceeded
</Message>
</Error>
<!-- ws05.ydn.ac4.yahoo.com uncompressed Tue Jun 28 07:56:13 PDT 2011 -->
我希望这会有所帮助.
这篇关于YAHOO api地理编码-超出限制的错误代码或作为JSONObject检索到的ErrorMessage的限制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文