Google Weather
Home :: 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...
13 °C | 55 °F Current: Partly Cloudy Wind: Wind: W at 2 mph Humidity: 94% | Thu
 53°C | 69°C | Fri
 57°C | 66°C | Sat
 50°C | 68°C | Sun
 46°C | 66°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 itTo become a member and get immediate access to the course please join here Free!
Next >> Benchmark Testing
|