Swiftpack.co - WeatherProvider/MeteorologicalServiceOfCanada-Swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by WeatherProvider.
WeatherProvider/MeteorologicalServiceOfCanada-Swift 0.1.2
A multi-platform Swift wrapper for the Meteorological Service of Canada's open data API.
⭐️ 0
🕓 3 years ago
iOS macOS
.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: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3 years ago

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