Posted By

xavsio4 on 04/07/11


Tagged


Versions (?)

Get Current weather using google API


 / Published in: PHP
 

  1. $xml = simplexml_load_file('http://www.google.com/ig/api?weather=ADDRESS');
  2. $information = $xml->xpath("/xml_api_reply/weather/current_conditions/condition");
  3. echo $information[0]->attributes();

Report this snippet  

You need to login to post a comment.