开发者

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

开发者 https://www.devze.com 2023-03-04 23:51 出处:网络
I use Yahoo geocode api in an application for geocoding addresses and i need to log开发者_如何学JAVA every time the geocoding limit is exceeded. Please tell me what error code or error message should

I use Yahoo geocode api in an application for geocoding addresses and i need to log开发者_如何学JAVA every time the geocoding limit is exceeded. Please tell me what error code or error message should i query, by parsing the JSONObject response.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消