Google opened a set of weather forecast API, which is still very useful.
Use zip code (USA)
Http://www.google.com/ig/api? Hl = ZH-CN & weather = 94043 (Mountain View city, California)
Use longitude and latitude coordinates
Http://www.google.com/ig/api? Hl = ZH-CN & weather =, 3067213,104019996 (Chengdu) is used for Android.
Http://www.google.com/ig/api? & Amp; weather =, 3067213,1040%6 (Chengdu), which is used on Android.
Use the name of the connected city
Http://www.google.com/ig/api? Weather = Beijing & HL = ZH-CN (Beijing)
Http://www.google.com/ig/api? Weather = zhangka & HL = ZH-CN (Osaka)
Or
Http://www.google.com/ig/api? Weather = Beijing & HL = ZH (Beijing)
Http://www.google.com/ig/api? Weather = Osaka Ka & HL = JA (Osaka)
Which countries and cities can be found? Google also provides interfaces. The returned type can also be specified according to the output parameter.
Find country http://www.google.com/ig/countries? Output = xml & HL = ZH-CN (XML is returned)
Find city http://www.google.com/ig/cities? Hl = ZH-CN & Country = Cn (return JSON)
With this data, it is not difficult to add weather forecasts to your own applications.