I’m using yahoo geocoding YQL to get lat/lon for a user-entered location. The strange thing is that I get different results when querying from different IP addresses. For example, this query attempts to resolve London, United Kingdom:
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.places%20where%20text%3D%22london%2C+United+Kingdom%22&appid=my_app_id
(before you ask, my_app_id is the real ID, which, for obvious reasons, I’m not showing here)
When I run this from my local machine (using wget in console), I get valid results. I get the same results when I run it from our test server. However when I run it from our live server, I get a different response with count="0". Because of this, the app is working on my local machine and on our test server, but is failing on the live server.
Something is definitely wrong, but I can’t figure out what. Any help is appreciated.
I would try adding the Diagnostics option to YQL. That should give you some more insight on the queries that YQL is making on your behalf, and may give a clue.
Here’s your query with diagnostics enabled:
select * from geo.places where text="london, United Kingdom"With diagnostics on, you can compare your results from your different IPs to track down the difference. If you get a return with zero results, I think it’s usually a rate-limit problem.