A Swift wrapper for Meteorological Service Of Canada Open Data.
Platform | CI |
---|---|
Apple | |
Linux (Ubuntu & Amazon) |
Swift Package Manager:
https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift.git
This library is still undergoing major changes. It is recommended you use exact version when installing to minimize future impacts.
import MeteorologicalServiceOfCanada
let msc = MeteorologicalServiceOfCanada()
let stanleyPark = (latitude: 49.302877, longitude: -123.145848)
msc.getCurrentConditions(at: stanleyPark) { result in
switch result {
case .success(condition): print(conditions)
case .failure(error): print(error)
}
}
This library currently only supports English.
The weather data provided by this library is sourced from Environment and Climate Change Canada, which is a work of the Canadian government, subject to their end-use license.
This Swift library is licensed under the MIT license.