Skip to content

A multi-platform Swift wrapper for the Meteorological Service of Canada's open data API.

License

Notifications You must be signed in to change notification settings

WeatherProvider/MeteorologicalServiceOfCanada-Swift

Repository files navigation

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.

About

A multi-platform Swift wrapper for the Meteorological Service of Canada's open data API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages