Skip to content

Commit

Permalink
Merge pull request #1 from miloso/master
Browse files Browse the repository at this point in the history
Enable the automatic unit conversion for the Forecast.io service
  • Loading branch information
AlvaroFranco committed Jul 19, 2014
2 parents 45370e2 + 2451712 commit f861219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFWeather.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ -(NSURLRequest *)requestForLocationName:(NSString *)name orLatitude:(NSString *)
break;

case AFWeatherAPIForecast:
request = [NSURLRequest requestWithURL:[NSURL URLWithString:[_baseURL stringByAppendingString:[NSString stringWithFormat:@"/%@,%@",[[lat stringByReplacingOccurrencesOfString:@"," withString:@"."] encodeForURLWithEncoding:NSUTF8StringEncoding],[[lon stringByReplacingOccurrencesOfString:@"," withString:@"."] encodeForURLWithEncoding:NSUTF8StringEncoding]]]]];
request = [NSURLRequest requestWithURL:[NSURL URLWithString:[_baseURL stringByAppendingString:[NSString stringWithFormat:@"/%@,%@?units=auto",[[lat stringByReplacingOccurrencesOfString:@"," withString:@"."] encodeForURLWithEncoding:NSUTF8StringEncoding],[[lon stringByReplacingOccurrencesOfString:@"," withString:@"."] encodeForURLWithEncoding:NSUTF8StringEncoding]]]]];
break;

case AFWeatherAPITest:
Expand Down

0 comments on commit f861219

Please sign in to comment.