| Author |
Message |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
|
| Back to top |
|
 |
to__liuyi Freshman

Joined: 04 Feb 2008 Posts: 4
|
Posted: Wed Feb 27, 2008 2:31 am Post subject: tried |
|
|
| I have tried to add the dot, it doesn't work. And I checked spelling of Weatherforecast. |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
Posted: Thu Feb 28, 2008 2:24 am Post subject: |
|
|
Hello to__liuyi,
I attached the working source to the end of this post: http://www.anddev.org/viewtopic.php?p=1304#1304
Regards,
plusminus _________________
Please remember, that this board is give & take 
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
to__liuyi Freshman

Joined: 04 Feb 2008 Posts: 4
|
Posted: Thu Feb 28, 2008 3:08 am Post subject: |
|
|
| well done! good job! |
|
| Back to top |
|
 |
shriya Once Poster

Joined: 08 Aug 2008 Posts: 1
|
Posted: Fri Aug 08, 2008 10:12 am Post subject: weather Info |
|
|
If we use the Google RSS feed to take the weather data do we need to show the google trademark on our site?
It will be really helpful if I get reply immediately?
Thanks,
Shriya |
|
| Back to top |
|
 |
jujudellago Freshman

Joined: 13 Sep 2008 Posts: 3
|
Posted: Sat Sep 13, 2008 12:00 pm Post subject: |
|
|
| plusminus wrote: | Hello icer,
the weather Data is openly provided by Google and therefore we can us it for free.
I don't know whether there is any document out there describing how to use the API, just use it
Regards,
plusminus |
Hi,
I found this very interresting topic while googling for a solution to have a dynamic weather forecast solution in a web app.
I have adapted the principle to a ruby system fetching and caching the results of the query, then parsing it with XMLSimple.
It worked really well, I just had time to run a few tests before everything got messed up... queries in my browser such as
http://www.google.com/ig/api?weather=geneva,switzerland give me no error, but fetching the datas from my program, with the same queries return something like this:
| XML: |
<?xml version=\"1.0\"?><xml_api_reply version=\"1\"><weather module_id=\"0\" tab_id=\"0\"><problem_cause data=\"\"/></weather></xml_api_reply> |
I did not find any information on the usage of the weather API, so my feeling is that google doesn't allow such queries ... does anyone use this service ? I would love to "just use it" but I'm sure the google people are just smarter than me....
regards
julien |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
|
| Back to top |
|
 |
jujudellago Freshman

Joined: 13 Sep 2008 Posts: 3
|
Posted: Sat Sep 13, 2008 4:07 pm Post subject: |
|
|
| plusminus wrote: |
Same with me here, two days ago it was still working
I'll see if I can find something...
Regards,
plusminus |
wow just 2 days ? I felt like these google weather tricks would just bring me troubles, and as I'm very bored today, I played around with the weather.com services...
http://www.weather.com/services/xmloap.html
not so easy to use as the google one, but it gives more complete results... well if the google weather gives you problems you can try...
regards
julien |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
Posted: Sun Sep 14, 2008 12:11 am Post subject: |
|
|
| jujudellago wrote: | | plusminus wrote: |
Same with me here, two days ago it was still working
I'll see if I can find something...
Regards,
plusminus |
wow just 2 days ? I felt like these google weather tricks would just bring me troubles, and as I'm very bored today, I played around with the weather.com services...
http://www.weather.com/services/xmloap.html
not so easy to use as the google one, but it gives more complete results... well if the google weather gives you problems you can try...
regards
julien |
Can it resolve weather for Latitude/Longitude pairs? _________________
Please remember, that this board is give & take 
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
jujudellago Freshman

Joined: 13 Sep 2008 Posts: 3
|
Posted: Sun Sep 14, 2008 1:00 pm Post subject: |
|
|
| plusminus wrote: |
Can it resolve weather for Latitude/Longitude pairs? |
No, that's the "not so easy part", the queries must be made with a specific city ID, so you must fetch the city ID from a given city.
I did not find a city database for weather.com, so I populated the maxmind city database http://www.maxmind.com/app/city then I internally calculate the nearest city to query weather.com (it's all made very easy with some ruby on rails plugins...) |
|
| Back to top |
|
 |
|