Google Weather API消失了吗? [英] Google Weather API gone?
问题描述
我在我的iPhone应用程序中使用了以下google weather api来获得4天的天气预报。
I had been using the following google weather api in my iPhone apps to get 4 day weather forecast.
NSString *address = @"http://www.google.com/ig/api?weather=Chicago";
NSString *request = [NSString stringWithFormat:@"%@",address];
NSLog(@"request: %@", request);
NSURL *URL = [NSURL URLWithString:request];
NSError *error;
NSString *XML = [NSString stringWithContentsOfURL:URL encoding:NSASCIIStringEncoding error:&error];
NSLog(@"XML: %@", XML);
NSLog(@"XML lenght: %d", [XML length]);
截至2012年8月25日,我绝对没有回来!我没有得到任何结果。这是什么时候发生的?有没有其他人遇到同样的问题?
As of yesterday Aug 25th, 2012 I get absolutely nothing back! I don't get any results back. When did this happen? Did Has anyone else experience this same problem?
这是一个非常关键的问题因为我有多个天气/时钟应用程序寻找谷歌天气api他们都崩溃了我期待一些结果回到我的XML字符串中!
This is a really critical issue as I have multiple weather / clock apps that look for google weather api and they all are crashing as I expect some results back in my XML string!
推荐答案
Google Weather API似乎正式死了,这具有讽刺意味要说,因为从来没有正式支持的API开始。 Google没有正式公告,但应该注意的是iGoogle现在正在使用Wunderground的API来处理天气数据。
The Google Weather API seems to be "officially" dead, which is ironic to say, because it was never officially a supported API to begin with. There has been no official announcement from Google, but it should be noted that iGoogle is now using Wunderground's API for weather data.
http:// igoogle。 wunderground.com/US/CA/Mountain_View.html
所以不,你没看到的东西。 Google Weather API已不复存在。我经历过同样的事情。现在是时候继续寻找合适的替代品了。
So no, you're not seeing things. The Google Weather API is gone. I experienced the same thing. It's time to move on and find a suitable replacement.
这篇关于Google Weather API消失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!