Once you can get a country and city, you go to weatherunderground and register for an API key. The key is free to use for up to 500 lookups per day. More than that, you'll need to pay a monthly fee.
A PHP script can use CURL to grab the XML file for your designated city.
Example, when I access this XML file, I get the results shown below:
http://api.wunderground.com/api/mykeygoeshere/conditions/q/UK/Manchester.xml
So with Google Maps locator, you'll need to know the country name ( UK ) and the city ( Manchester ).
Examples in the U.S. would be: /MN/Minneapolis.xml (state/city).
XML Results:
PHP Code:
<response>
<version>0.1</version>
<termsofService>http://www.wunderground.com/weather/api/d/terms.html</termsofService>
<features>
<feature>conditions</feature>
</features>
<current_observation>
<image>
<url>http://icons-ak.wxug.com/graphics/wu2/logo_130x80.png</url>
<title>Weather Underground</title>
<link>http://www.wunderground.com</link>
</image>
<display_location>
<full>Manchester, United Kingdom</full>
<city>Manchester</city>
<state/>
<state_name>United Kingdom</state_name>
<country>UK</country>
<country_iso3166>GB</country_iso3166>
<zip>00000</zip>
<latitude>53.34999847</latitude>
<longitude>-2.26999998</longitude>
<elevation>78.00000000</elevation>
</display_location>
<observation_location>
<full>Manchester, </full>
<city>Manchester</city>
<state/>
<country>UK</country>
<country_iso3166>GB</country_iso3166>
<latitude>53.34999847</latitude>
<longitude>-2.26999998</longitude>
<elevation>256 ft</elevation>
</observation_location>
<estimated>
</estimated>
<station_id>EGCC</station_id>
<observation_time>Last Updated on March 20, 12:50 AM GMT</observation_time>
<observation_time_rfc822>Wed, 20 Mar 2013 00:50:00 +0000</observation_time_rfc822>
<observation_epoch>1363740600</observation_epoch>
<local_time_rfc822>Wed, 20 Mar 2013 01:08:22 +0000</local_time_rfc822>
<local_epoch>1363741702</local_epoch>
<local_tz_short>GMT</local_tz_short>
<local_tz_long>Europe/London</local_tz_long>
<local_tz_offset>+0000</local_tz_offset>
<weather>Mostly Cloudy</weather><temperature_string>37 F (3 C)</temperature_string>
<temp_f>37</temp_f>
<temp_c>3</temp_c>
<relative_humidity>81%</relative_humidity>
<wind_string>From the East at 8 MPH</wind_string>
<wind_dir>East</wind_dir>
<wind_degrees>80</wind_degrees>
<wind_mph>8</wind_mph>
<wind_gust_mph>0</wind_gust_mph>
<wind_kph>13</wind_kph>
<wind_gust_kph>0</wind_gust_kph>
<pressure_mb>1001</pressure_mb>
<pressure_in>29.56</pressure_in>
<pressure_trend>0</pressure_trend>
<dewpoint_string>32 F (0 C)</dewpoint_string>
<dewpoint_f>32</dewpoint_f>
<dewpoint_c>0</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c><
windchill_string>31 F (0 C)</windchill_string>
<windchill_f>31</windchill_f>
<windchill_c>0</windchill_c>
<feelslike_string>31 F (0 C)</feelslike_string>
<feelslike_f>31</feelslike_f>
<feelslike_c>0</feelslike_c>
<visibility_mi>6.2</visibility_mi>
<visibility_km>10.0</visibility_km>
<solarradiation/><UV>0</UV>
<precip_1hr_string>-9999.00 in (-9999.00 mm)</precip_1hr_string>
<precip_1hr_in>-9999.00</precip_1hr_in>
<precip_1hr_metric>-9999.00</precip_1hr_metric>
<precip_today_string>0.00 in (0.0 mm)</precip_today_string>
<precip_today_in>0.00</precip_today_in>
<precip_today_metric>0.0</precip_today_metric>
<icon>mostlycloudy</icon>
<icon_url>http://icons-ak.wxug.com/i/c/k/nt_mostlycloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/global/stations/03334.html</forecast_url>
<history_url>http://www.wunderground.com/history/airport/EGCC/2013/3/20/DailyHistory.html</history_url>
<ob_url>http://www.wunderground.com/cgi-bin/findweather/getForecast?query=53.34999847,-2.26999998</ob_url>
</current_observation>
</response>
PHP can parse that XML file and dynamically generate any web page you wish. There are many different API reports and data collections to access.
Even if you have to pay a monthly fee, look at how much data you can get.
See this for more info:
http://www.wunderground.com/weather/api/d/docs
.