Swiftpack.co - Package - WeatherProvider/MeteorologicalServiceOfCanada-Swift
Flag of Canada

Meteorological Service Of Canada

Swift 5.3 MIT License

A Swift wrapper for Meteorological Service Of Canada Open Data.

Platforms

| Platform | CI | | :------- | :- | | Apple | Apple | | Linux (Ubuntu & Amazon) | Linux |

Installation

Swift Package Manager:

https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift.git

Important

This library is still undergoing major changes. It is recommended you use exact version when installing to minimize future impacts.

Usage

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.

License

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.

Github

link
Stars: 0

Used By

Total: 0

Releases

- 2020-09-13 20:36:41