11<center ></center >
22
3- # Open Weather Map iOS Api #
3+ # Open Weather Map iOS API #
44
55This projects allows you to quickly and easily fetch data
66from [ openweathermap.org] ( http://openweathermap.org/ " OpenWeatherMap.org ") .
77
8+ ## API Changes ##
9+
10+ ### Version 0.0.5 ###
11+
12+ The methods for getting the daily forecast have changed names. So instead of: ` dailyForecastWeatherByCityName:withCount:withCallback: `
13+ they are now called: ` dailyForecastWeatherByCityName:withCount:andCallback: `
14+
15+ Added new methods for setting the ` lang ` parameter to the api:
16+
17+ - (void) setLangWithPreferedLanguage;
18+ - (void) setLang:(NSString * ) lang;
19+ - (NSString * ) lang;
20+
21+ The method ` setLangWithPreferedLanguage ` sets the lang parameter according to the prefered language on the phone.
22+
823## Usage ##
924
1025### Installation ###
@@ -25,7 +40,7 @@ Using the API is really simple if you have [CocoaPods](http://cocoapods.org/ "Co
2540 OWMWeatherAPI *weatherAPI = [[OWMWeatherAPI alloc] initWithAPIKey:@"YOUR-API-KEY"];
2641 ` ` `
2742
28- 4 . Select the default temperature format (defaults to Celcius )
43+ 4 . Select the default temperature format (defaults to Celsius )
2944
3045 ` ` ` Objective-c
3146 [weatherAPI setTemperatureFormat:kOWMTempCelcius];
@@ -122,44 +137,44 @@ current weather by city id:
122137 withCallback:( void (^)( NSError* error, NSDictionary *result ) )callback;
123138` ` `
124139
125- # ## forcasts (3 hour intervals) ###
140+ # ## forecasts (3 hour intervals) ###
126141
127- forcast by city name:
142+ forecast by city name:
128143` ` ` Objective-c
129144 -(void) forecastWeatherByCityName:(NSString *) name
130145 withCallback:( void (^)( NSError* error, NSDictionary *result ) )callback;
131146` ` `
132147
133- forcast by coordinate:
148+ forecast by coordinate:
134149` ` ` Objective-c
135150 -(void) forecastWeatherByCoordinate:(CLLocationCoordinate2D) coordinate
136151 withCallback:( void (^)( NSError* error, NSDictionary *result ) )callback;
137152` ` `
138153
139- forcast by city id:
154+ forecast by city id:
140155` ` ` Objective-c
141156 -(void) forecastWeatherByCityId:(NSString *) cityId
142157 withCallback:( void (^)( NSError* error, NSDictionary *result ) )callback;
143158` ` `
144159
145- # ## daily forcasts ###
160+ # ## daily forecasts ###
146161
147- daily forcast by city name:
162+ daily forecast by city name:
148163` ` ` Objective-c
149164 -(void) dailyForecastWeatherByCityName:(NSString *) name
150165 withCount:(int) count
151166 withCallback:( void (^)( NSError* error, NSDictionary *result ) )callback;
152167` ` `
153168
154- daily forcast by coordinates:
169+ daily forecast by coordinates:
155170` ` ` Objective-c
156171 -(void) dailyForecastWeatherByCoordinate:(CLLocationCoordinate2D) coordinate
157172 withCount:(int) count
158173 withCallback:( void (^)( NSError* error, NSDictionary *result ) )callback;
159174
160175` ` `
161176
162- daily forcast by city id:
177+ daily forecast by city id:
163178` ` ` Objective-c
164179 -(void) dailyForecastWeatherByCityId:(NSString *) cityId
165180 withCount:(int) count
0 commit comments