Swiftpack.co -  Package - WeatherProvider/MeteorologicalServiceOfCanada-Swift
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
WeatherProvider/MeteorologicalServiceOfCanada-Swift
A multi-platform Swift wrapper for the Meteorological Service of Canada's open data API.
.package(url: "https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift.git", from: "0.1.2")
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
Last commit: 28 weeks ago

Release Notes

29 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco