Animaonline.WeatherAPI.WeatherData

Apr 8, 2010 at 7:58 AM

excuce me

i follow the sample code in http://awapi.codeplex.com/wikipage?title=Code%20Samples&referringTitle=Home

but i can not find WeatherData in Animaonline namespace

and i find other Animaonline Weather API.dll in other place.

it can run but the information of WeatherData.latitude_e6, WeatherData.longitude_e6 is null

please help me to solve these problem

thx

Coordinator
Apr 8, 2010 at 8:22 AM

Hi!

The sample code you are trying to use, has been outdated. (If you want to use it download an older version of the API)

The core of 2.5.0.0 beta has been rewritten from scratch and now has a new structure, and utilizes LINQ.

Try this code for example:

Animaonline.Weather.WeatherData.GoogleWeatherData wD = Animaonline.Weather.GoogleWeatherAPI.GetWeather(Animaonline.Globals.LanguageCode.en_US, "Drammen");
Console.WriteLine(wD.CurrentConditions.Temperature.Celsius);
Apr 8, 2010 at 10:00 AM
Edited Apr 9, 2010 at 2:23 AM

very thx

i success

thx again