<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Free weather API (secret Google Weather API)</title>
	<atom:link href="http://www.howtechnews.com/2012/01/22/free-weather-api-google/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtechnews.com/2012/01/22/free-weather-api-google/</link>
	<description>every thing that is hot (or not) in the web</description>
	<lastBuildDate>Fri, 04 May 2012 18:54:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Niek</title>
		<link>http://www.howtechnews.com/2012/01/22/free-weather-api-google/#comment-5498</link>
		<dc:creator>Niek</dc:creator>
		<pubDate>Sun, 22 Jan 2012 14:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtechnews.com/?p=96#comment-5498</guid>
		<description>You can ask the google weather for multiple places like below:

$xml = simplexml_load_file(‘http://www.google.com/ig/api?weather=Amsterdam&amp;weather=Cambodja’);
//$information = $xml-&gt;xpath(“/xml_api_reply/weather/forecast_information”);
$current = $xml-&gt;xpath(“/xml_api_reply/weather/current_conditions”);
echo ‘

icon[&#039;data&#039;].’” alt=”weather”&gt;

‘.$current[0]-&gt;temp_c[&#039;data&#039;].’° C

‘;
$city[&quot;Name&quot;] = “Amsterdam”;
$city[&quot;GMT&quot;] = 1.0;
$city[&quot;actualDST&quot;] = 0.0; //Because it’s summer time
$gmt_diff = $city[&quot;GMT&quot;]+$city[&quot;actualDST&quot;]; //your functions for getting the hour difference betweer the city and the GMT
$city_time = time()+($gmt_diff*3600); //sum the timestamps
//echo ”.gmdate(“”,$city_time); //echo the formatted date
echo ‘  ’.gmdate(“H:i”,$city_time).’    ’;
echo ‘

icon[&#039;data&#039;].’” alt=”weather2″&gt;

‘.$current[1]-&gt;temp_c[&#039;data&#039;].’° C

‘;
$city[&quot;Name&quot;] = “Phnom Penh”;
$city[&quot;GMT&quot;] = 7.0;
$city[&quot;actualDST&quot;] = 0.0; //Because it’s summer time
$gmt_diff = $city[&quot;GMT&quot;]+$city[&quot;actualDST&quot;]; //your functions for getting the hour difference betweer the city and the GMT
$city_time = time()+($gmt_diff*3600); //sum the timestamps
//echo ”.gmdate(“”,$city_time); //echo the formatted date
echo ‘  ’.gmdate(“H:i”,$city_time).’    ’;
echo ‘</description>
		<content:encoded><![CDATA[<p>You can ask the google weather for multiple places like below:</p>
<p>$xml = simplexml_load_file(‘http://www.google.com/ig/api?weather=Amsterdam&amp;weather=Cambodja’);<br />
//$information = $xml-&gt;xpath(“/xml_api_reply/weather/forecast_information”);<br />
$current = $xml-&gt;xpath(“/xml_api_reply/weather/current_conditions”);<br />
echo ‘</p>
<p>icon['data'].’” alt=”weather”&gt;</p>
<p>‘.$current[0]-&gt;temp_c['data'].’° C</p>
<p>‘;<br />
$city["Name"] = “Amsterdam”;<br />
$city["GMT"] = 1.0;<br />
$city["actualDST"] = 0.0; //Because it’s summer time<br />
$gmt_diff = $city["GMT"]+$city["actualDST"]; //your functions for getting the hour difference betweer the city and the GMT<br />
$city_time = time()+($gmt_diff*3600); //sum the timestamps<br />
//echo ”.gmdate(“”,$city_time); //echo the formatted date<br />
echo ‘  ’.gmdate(“H:i”,$city_time).’    ’;<br />
echo ‘</p>
<p>icon['data'].’” alt=”weather2″&gt;</p>
<p>‘.$current[1]-&gt;temp_c['data'].’° C</p>
<p>‘;<br />
$city["Name"] = “Phnom Penh”;<br />
$city["GMT"] = 7.0;<br />
$city["actualDST"] = 0.0; //Because it’s summer time<br />
$gmt_diff = $city["GMT"]+$city["actualDST"]; //your functions for getting the hour difference betweer the city and the GMT<br />
$city_time = time()+($gmt_diff*3600); //sum the timestamps<br />
//echo ”.gmdate(“”,$city_time); //echo the formatted date<br />
echo ‘  ’.gmdate(“H:i”,$city_time).’    ’;<br />
echo ‘</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eran</title>
		<link>http://www.howtechnews.com/2012/01/22/free-weather-api-google/#comment-5497</link>
		<dc:creator>Eran</dc:creator>
		<pubDate>Sun, 22 Jan 2012 13:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtechnews.com/?p=96#comment-5497</guid>
		<description>Nice post... I&#039;ve also used a weather API for one of my clients as part of a .net development project. This is the site that I&#039;ve sued as a reference: http://awapi.codeplex.com/</description>
		<content:encoded><![CDATA[<p>Nice post&#8230; I&#8217;ve also used a weather API for one of my clients as part of a .net development project. This is the site that I&#8217;ve sued as a reference: <a href="http://awapi.codeplex.com/" rel="nofollow">http://awapi.codeplex.com/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

