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...
-2 °C | 28 °F Current: Overcast Wind: Wind: NE at 6 mph Humidity: 69% | Tue
 28°C | 39°C | Wed
 30°C | 37°C | Thu
 30°C | 37°C | Fri
 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 itTo become a member and get immediate access to the course please join here Free!
Next >> Benchmark Testing
|