YAHOO api geocode - What is the limit exceeded error code or ErrorMessage retrieved as a JSONObject?

南笙酒味 提交于 2019-12-11 18:06:26

问题


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.


回答1:


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 -->

I hope this helps.



来源:https://stackoverflow.com/questions/5933971/yahoo-api-geocode-what-is-the-limit-exceeded-error-code-or-errormessage-retrie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!