Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Commit 4ab6212

Browse files
committed
Updated the readme. and the pod spec
1 parent a55c376 commit 4ab6212

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

OpenWeatherMapAPI.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = "OpenWeatherMapAPI"
3-
s.version = "0.0.4"
3+
s.version = "0.0.5"
44
s.summary = "A simple api for getting data from http://openweathermap.org."
55
s.homepage = "http://github.com/adba/OpenWeatherMapAPI"
66
s.license = { :type => 'MIT', :file => 'LICENSE'}
77
s.author = { "Adrian Bak" => "[email protected]" }
8-
s.source = { :git => "https://github.com/adba/OpenWeatherMapAPI.git", :tag => "0.0.4" }
8+
s.source = { :git => "https://github.com/adba/OpenWeatherMapAPI.git", :tag => "0.0.5" }
99
s.platform = :ios, '5.0'
1010
s.source_files = 'OpenWeatherMapAPI/OpenWeatherMapAPI'
1111
s.public_header_files = 'OpenWeatherMapAPI/OpenWeatherMapAPI/*.h'
Binary file not shown.

OpenWeatherMapAPI/OpenWeatherMapAPI/OWMWeatherAPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ typedef enum {
2828

2929
- (void) setLangWithPreferedLanguage;
3030
- (void) setLang:(NSString *) lang;
31-
-(NSString *) lang;
31+
- (NSString *) lang;
3232

3333
#pragma mark - current weather
3434

README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
<center>![OpenWeatherMapAPI](https://raw.github.com/adba/OpenWeatherMapAPI/master/hero.png)</center>
22

3-
# Open Weather Map iOS Api #
3+
# Open Weather Map iOS API #
44

55
This projects allows you to quickly and easily fetch data
66
from [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

Comments
 (0)