WAWeather (WeatherApi.com Weather) fetches weather data from WeatherAPI.com. You need to have an API key to use this package. You can sign up and get an API key at WeatherAPI.com for free.
WAWeather needs an API key, latitude and longitude coordinates of a location, number of days for a forecast (default is one). When currentOnly is set to true WAWeather fetches only current weather conditions for a given location.
let weather = try WAWeather(apiKey: "[insert_your_api_key_here]", coordinates: (lat: 43.23, lon: 76.95), days: 3, currentOnly: false)
print(weather.data)
Detailed description of data model is available at WeatherAPI.com. See https://www.weatherapi.com/docs/ for reference.
.package(url: "https://github.com/jareksedy/WAWeather.git", from: "1.0.0")
to your Package.swift
file's dependencies
.$ swift package update
.Contact me at [email protected]
link |
Stars: 0 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics