michael's FotoPage

By: michael williams

[Recommend this Fotopage] | [Share this Fotopage]
View complete fotopage

Thursday, 21-Jun-2012 13:10 Email | Share | Bookmark
How to Use Google Weather API inside The Web Page

There are lots of causes to add Weather API to your site. 124,000,000 search queries for "Weather" are manufactured every month, plus sometimes it relates to your organization. How could you add it? What are the one which might fit your desired region? Is there a free tool online to create it?The answer for all of this questions is Google's Weather API. Google has an API which manufactured information on Weather temperature plus circumstances for 5 days, the recent plus 4 days ahead. Like all others API which Google developed, it's free.Basically you'll need to be knowledgeable with HTML, CSS plus PHP. The code contains the information puller (PHP), and also the designer code (HTML & CSS).The PHP element (this element is added prior to upcoming HTML/PHP code) \nxpath("/xml_api_reply/weather/current_conditions"); // get present temperature plus condition $info = $xml->xpath("/xml_api_reply/weather/forecast_information"); // get upcoming days temperature $forecast_list = $xml->xpath("/xml_api_reply/weather/forecast_conditions"); // get upcoming days circumstances ?>This might pull all the information on the spot we selected, plus will be willing to be located inside your page with PHP code.The HTML & PHP part \nNew-York City Weather ° F,\nphp foreach loop

View complete fotopage

© Pidgin Technologies Ltd. 2016