Skip to content

Commit

Permalink
License (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ualch9 authored Sep 13, 2020
1 parent 91017b6 commit 5a7578c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Alan Chu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# MeteorologicalServiceOfCanada
# Meteorological Service Of Canada
![Swift](https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift/workflows/Swift/badge.svg)

A description of this package.
## Platforms
- Apple platforms
- Ubuntu

## 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 impacts.

## Usage
```swift
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](https://eccc-msc.github.io/open-data/licence/readme_en/).

This Swift library is licensed under the MIT license.

0 comments on commit 5a7578c

Please sign in to comment.