public class OWMPro
extends OWM
Starting point for this lib. If you're new to this API, start from this class.
Lets you access data from OpenWeatherMap.org using its Weather APIs (Pro).
Sample code in Java:
OWMPro owm = new OWMPro("your-pro-api-key");
Sample code in Kotlin:
val owm: OWMPro = OWMPro("your-pro-api-key")
| Modifier and Type | Class and Description |
|---|---|
static class |
OWMPro.Companion |
| Modifier and Type | Field and Description |
|---|---|
static OWMPro.Companion |
Companion |
| Constructor and Description |
|---|
OWMPro(java.lang.String apiKey)
Constructor
|
airPollutionByCoords, airPollutionByCoords, createRetrofit4OthersInstance, createRetrofit4PollutionInstance, createRetrofit4WeatherInstance, currentAirPollutionByCoords, currentUVIndexByCoords, currentWeatherByCityId, currentWeatherByCityName, currentWeatherByCityName, currentWeatherByCoords, currentWeatherByZipCode, currentWeatherByZipCode, dailyUVIndexForecastByCoords, dailyWeatherForecastByCityId, dailyWeatherForecastByCityId, dailyWeatherForecastByCityName, dailyWeatherForecastByCityName, dailyWeatherForecastByCityName, dailyWeatherForecastByCityName, dailyWeatherForecastByCoords, dailyWeatherForecastByCoords, dailyWeatherForecastByZipCode, dailyWeatherForecastByZipCode, dailyWeatherForecastByZipCode, dailyWeatherForecastByZipCode, getAccuracy, getApiKey, getBaseUrl, getLanguage, getProxy, getRetrofit4others, getRetrofit4pollution, getRetrofit4weather, getUnit, historicalUVIndexByCoords, historicalUVIndexByCoords, historicalUVIndexByCoords, historicalUVIndexByCoords, hourlyWeatherForecastByCityId, hourlyWeatherForecastByCityName, hourlyWeatherForecastByCityName, hourlyWeatherForecastByCoords, hourlyWeatherForecastByZipCode, hourlyWeatherForecastByZipCode, resetProxy, setAccuracy, setApiKey, setBaseUrl, setLanguage, setNoProxy, setProxy, setProxy, setProxy, setProxy, setProxy, setProxy, setRetrofit4others, setRetrofit4pollution, setRetrofit4weather, setUnitpublic static OWMPro.Companion Companion
public OWMPro(java.lang.String apiKey)
Constructor
Defaults: Search accuracy is set to like Defaults: Unit is set to standard Defaults: Language is set to English Defaults: Proxy is set to system's proxy
apiKey - API key (pro) from OpenWeatherMap.org