Skip to content

Commit a89e337

Browse files
committed
add appid for openweather
1 parent 665ddae commit a89e337

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SwiftWeather/OpenWeatherMapService.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ struct OpenWeatherMapService : WeatherServiceProtocol {
9595
}
9696

9797
components.queryItems = [NSURLQueryItem(name:"lat", value:String(location.coordinate.latitude)),
98-
NSURLQueryItem(name:"lon", value:String(location.coordinate.longitude))]
98+
NSURLQueryItem(name:"lon", value:String(location.coordinate.longitude)),
99+
NSURLQueryItem(name:"appid", value:String("bd82977b86bf27fb59a04b61b657fb6f"))]
100+
//Please sign up for openweather( http://openweathermap.org/appid ) and put your own appid here.
99101
return components.URL
100102
}
101103
}

0 commit comments

Comments
 (0)