2004-04-13, 03:46 AM
Maybe CodeMonkey can put in some hooks for getting the weather information from other websites for certain area codes. I wouldnt expect him to implement support for other countries himself, but rather use the current approach (msnbc.com) as the default, and if others would like to provide more update info (eg Australia) then they could implement a function that will retrieve the information from a more upto date site.
CodeMonkey, if you do decide to do this I wouldnt worry about implementing anything too flashy:
if (areaCode.StartsWith("AU")
{
GetAustralianWeatherInformation();
}
// add other else if specific countries here...
else
{
GetDefaultWeatherInformation();
}
CodeMonkey, if you do decide to do this I wouldnt worry about implementing anything too flashy:
if (areaCode.StartsWith("AU")
{
GetAustralianWeatherInformation();
}
// add other else if specific countries here...
else
{
GetDefaultWeatherInformation();
}