I was using a Yahoo web service to resolve zip codes to geo information. An example url is

http://where.yahooapis.com/geocode?q=35060,mx

where 35060 is the area code and mx is the country.

I am now receiving 404s when I do this. Did this service change? I see now that yahoo offers GeoPlanet which requires an application id as well.

有帮助吗?

解决方案

Although there doesn't appear to be an official announcement from Yahoo, there have been consistent reports about this service no longer working.

As an "official" alternative, consider Yahoo Placefinder, which requires an app ID and 2-legged OAuth authentication: http://developer.yahoo.com/boss/geo/docs/requests-pf.html

Alternately, you may be able to use YQL to retrieve the information you need without requiring authentication:

http://query.yahooapis.com/v1/public/yql?q=select%20%2a%20from%20geo.placefinder%20where%20postal=%2236050%22%20and%20country=%22mexico%22&diagnostics=true

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top