Advantage: Data and style separationDisadvantage: not complete. City retrieval is not supported.
Google Code: http://code.google.com/p/weather-china/
Weather-China encapsulates weather RSS feed provided by Yahoo and provides a rest API interface in
Use Google weather API to query weather forecasts
Google weather API only supports querying by zip code in the United States. For example:Http://www.google.com/ig/
Weather. php Page code
/*** Notice of license** This source file is part of evebit's private project.** Do not use this file in other place.** @ Category evebit_library* @ Package Application* @ Author Chen Qiao * @ Version $ ID: event. php 130 2011-03-18 03: 10: 02z Cheng. Wei $* @ Copyright (c) 2011 evebit Inc. China (http://www.evebit.com)*/
/*** Weather class** Access to
;}
Do you understand a lot now? Let's first accept the responsestream content through a bitmap object, and then use the gethbitmap method of Bitmap to get an hbitmap object, it can be used to "fill" an image object, and the filled image object can be used by picturebox. Maybe this is a relatively difficult part of this article. I would like to share it with you here.
OK. After talking about this, the code and ideas of the main functional modules of the system are all available. Next, let'
://www.google.com/ig/cities? Output = xml HL = ZH-CN Country = Cn
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 latit
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG
= ZH-CN
(Query the code of all countries supported by Google and display it in ZH-CN Simplified Chinese)
Http://www.google.com/ig/cities? Output = xml HL = ZH-CN Country = Cn
Http://www.google.com/ig/cities? Country = Cn
By default, English is returned. You can add a parameter to return Chinese characters:
Http://www.google.com/ig/api? Weather = Nanji
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/
Android gets weather information via Google API
Copy Code code as follows:
public class Weatheractivity extends activity {
Private TextView txcity;
Private Button btnsearch;
Private Handler Weatherhandler;
Private Dialog ProgressDialog;
private timer timer;
/** called the activity is a. */
@Override
public void OnCreate (Bundle savedinstances
The base URL:Http://www.google.com/ig/api?
This is the base URL which can be extended with the following parameters:
The weather parameter:Weather =Location
WhereLocationCan be eitherZip code(Weather = 24060 );City name,State(Weather = woodland, PA );City name,Country(Weather
This article shares a three line can get your designated city Weather information Php+google API implementation code, the need for friends can refer to.
The code is as follows
Copy Code
$xml = simplexml_load_file (' http://www.google.com/ig/api?we
Learning Android For some time, should improve their actual combat ability, do some simple demo. Below we introduce how to use the network API to realize the weather forecast function, mainly involves how to use the API to obtain the network data, the network data return is generally the JSON format, here also involves
Write json, PHP, JAVASCRITP programming jobs Google Places APITravel and entertainment Search Server-side Scripting1. ObjectivesGet experience with the PHP programming language;Get experience with the Google Places API;Get experience using JSON parsers in PHP and JavaScript.
Yahoo weather API usage notes, Yahoo weather apiBase_url:Https://query.yahooapis.com/v1/public/yql? Q =, public query interface, limited query timesHttps://query.yahooapis.com/v1/yql? Q =: Get the ApkId after registration. There is a limit on the number of queries, but it is enough. 0.1 million times/dayStep 1: locate the user's location on the mobile phone end (
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.