Google Weather
Skip Navigation Links.

Google Weather

Skip Navigation LinksHome :: ASP.NET :: C# :: Google Weather

Here's how you add a Google Weather Map to your aspx pages using C#

Just pass in the location and it will appear on the page in a nice table. Like this...

-2 °C | 28 °F
Current: Overcast
Wind: Wind: NE at 6 mph
Humidity: 69%
Tue
Mostly Sunny
28°C | 39°C
Wed
Partly Sunny
30°C | 37°C
Thu
Partly Sunny
30°C | 37°C
Fri
Mostly Sunny
23°C | 41°C

You need the image files (snow, rain etc.) locally. here's a zip file with them in Substitute the path to where you put them where you see uri2Root.

/// <summary>

/// display a google weather map on the page

/// </summary>

/// <param name="location">this accepts a wide range of parameters like [city],[country] e.g. London,England - or postcodes, ISO country codes (UK,DE etc.), Lat/long</param>

public static void GoogleWeather(string location)

{

The rest of this page is hidden, you must be a member to view it

To become a member and get immediate access to the course please join here Free!

Already Enrolled? please click here to Login

Next >> Benchmark Testing
top of page
all content ©1996/2012 BennySutton.com
all images © their respective owners This site uses Thumbshots previews