Comments on: Google Weather API Feed Documentation http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/ Thu, 13 Aug 2009 20:03:53 +0000 http://wordpress.org/?v=2.8.4 hourly 1 By: A weather plasmoid in python « cout http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4756 A weather plasmoid in python « cout Thu, 13 Aug 2009 20:03:53 +0000 http://blog.emerick.org/?p=372#comment-4756 [...] weather information is fetched from google weather api. The location and the unit are configurable. The api provides forecast only for the next 3 days, so [...] [...] weather information is fetched from google weather api. The location and the unit are configurable. The api provides forecast only for the next 3 days, so [...]

]]>
By: antony http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4752 antony Wed, 12 Aug 2009 10:13:09 +0000 http://blog.emerick.org/?p=372#comment-4752 Anyone knows the update time that Google refreshes their weather information? If they change it once in one hour, doesn't make any sense to call this service several times in one hour. Anyone knows the update time that Google refreshes their weather information? If they change it once in one hour, doesn’t make any sense to call this service several times in one hour.

]]>
By: Stephen Collins http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4710 Stephen Collins Thu, 30 Jul 2009 17:37:46 +0000 http://blog.emerick.org/?p=372#comment-4710 I actually got this to work in .asp. Took forever to figure out, but returned everything i needed in just 8 lines of code. I actually got this to work in .asp.

Took forever to figure out, but returned everything i needed in just 8 lines of code.

]]>
By: Matt http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4703 Matt Mon, 27 Jul 2009 23:30:46 +0000 http://blog.emerick.org/?p=372#comment-4703 Do you have a working version written in ColdFusion? Do you have a working version written in ColdFusion?

]]>
By: MartinaGilbert http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4693 MartinaGilbert Thu, 23 Jul 2009 21:54:52 +0000 http://blog.emerick.org/?p=372#comment-4693 I cannot believe this will work! I cannot believe this will work!

]]>
By: Nathan http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4665 Nathan Thu, 09 Jul 2009 13:54:31 +0000 http://blog.emerick.org/?p=372#comment-4665 Weather.com also has an API. You have to sign up for a license but it's free. I used it to build the weather widget on www.terrell-hospital.com. It comes with a pack of translucent .png images to represent all of the conditions. That being said, it's kind of slow, and I had to create a php script that cURLed the data to a local source to quickly access it as a local javascript source for parsing. I'd prefer to use Google's method, as it's fast and simple, but as it's undocumented, I'm worried about building too much on it. Weather.com also has an API. You have to sign up for a license but it’s free. I used it to build the weather widget on http://www.terrell-hospital.com. It comes with a pack of translucent .png images to represent all of the conditions.
That being said, it’s kind of slow, and I had to create a php script that cURLed the data to a local source to quickly access it as a local javascript source for parsing. I’d prefer to use Google’s method, as it’s fast and simple, but as it’s undocumented, I’m worried about building too much on it.

]]>
By: Dimitar Shterionov http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4651 Dimitar Shterionov Sun, 28 Jun 2009 20:07:22 +0000 http://blog.emerick.org/?p=372#comment-4651 Hi, and really thank you... what you are suggesting, about the local storing of the data, I think could do. I would create such a script and calling the google api (I prefer the google api for the structure of the xml which reterns) would store a local file. About what I am trying to do actually it should look like: http://www.viamichelin.com/viamichelin/int/dyn/controller/Cartes and then if you choose extra -> weather you will get the weather - this is my goal. Thank you once again. Have nice evening. Hi, and really thank you… what you are suggesting, about the local storing of the data, I think could do. I would create such a script and calling the google api (I prefer the google api for the structure of the xml which reterns) would store a local file.
About what I am trying to do actually it should look like:

http://www.viamichelin.com/viamichelin/int/dyn/controller/Cartes

and then if you choose extra -> weather you will get the weather – this is my goal.

Thank you once again.
Have nice evening.

]]>
By: Dimitar Shterionov http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4649 Dimitar Shterionov Sun, 28 Jun 2009 17:05:40 +0000 http://blog.emerick.org/?p=372#comment-4649 Ok, Thank you once again. 1. Because of the (supposed) rate the website should be used and the times a user would refresh it it is not possible to use some time-restriction based algorithm. 2. So the solution is trying yahoo weather api. Or some other similar program. 3. But i hope that google would make some program solving my problem. Have a nice day. Ok, Thank you once again.
1. Because of the (supposed) rate the website should be used and the times a user would refresh it it is not possible to use some time-restriction based algorithm.
2. So the solution is trying yahoo weather api. Or some other similar program.
3. But i hope that google would make some program solving my problem.
Have a nice day.

]]>
By: Jason http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4648 Jason Sun, 28 Jun 2009 16:30:06 +0000 http://blog.emerick.org/?p=372#comment-4648 @Dimitar It sounds like you have been requesting data from the weather API at a rate that makes you look like you are doing something evil. I would recommend adding rate limiting to your code which makes the requests. I would start with something like 1 request per minute and then cache those results so that every page view on your website is not hitting Google 100 times or whatever (if that is how it works). As far as fixing the problem, when you view the weather API URL in your browser, do you have the option to enter a captcha? This is what Google does for search requests that look like spam? My only other suggestion would be to not access the weather API for a couple days and see if you ban has been lifted. Otherwise, I would recommend looking into another weather source such as Yahoo. Their format is standard as well so you should not have an issue parsing it. @Dimitar

It sounds like you have been requesting data from the weather API at a rate that makes you look like you are doing something evil. I would recommend adding rate limiting to your code which makes the requests. I would start with something like 1 request per minute and then cache those results so that every page view on your website is not hitting Google 100 times or whatever (if that is how it works).

As far as fixing the problem, when you view the weather API URL in your browser, do you have the option to enter a captcha? This is what Google does for search requests that look like spam? My only other suggestion would be to not access the weather API for a couple days and see if you ban has been lifted. Otherwise, I would recommend looking into another weather source such as Yahoo. Their format is standard as well so you should not have an issue parsing it.

]]>
By: Dimitar Shterionov http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/comment-page-1/#comment-4647 Dimitar Shterionov Sun, 28 Jun 2009 16:22:55 +0000 http://blog.emerick.org/?p=372#comment-4647 Hi to all, I am interested in google weather api , because unlikely other weather services it provides the data in a well-ordered xml. Unfortunately I couldn't get the api to return me the data for all of the region my site is about. Well basically, I created a loop for every city in Greece (this is the region I am working on) and sending a request a gather the info, or at least this is the idea. But google sent me an error massage that my program is acting as a virus or a spyware. Something that it is not. But... that's google's decision. So if someone has some idea how to fix this problem, I would appreciate if share it. Thank you in advance, have a nice day. Hi to all, I am interested in google weather api , because unlikely other weather services it provides the data in a well-ordered xml. Unfortunately I couldn’t get the api to return me the data for all of the region my site is about. Well basically, I created a loop for every city in Greece (this is the region I am working on) and sending a request a gather the info, or at least this is the idea. But google sent me an error massage that my program is acting as a virus or a spyware. Something that it is not. But… that’s google’s decision. So if someone has some idea how to fix this problem, I would appreciate if share it. Thank you in advance, have a nice day.

]]>