Class FiveDayThreeHourStepForecastResponseMapper
java.lang.Object
com.github.prominence.openweathermap.api.mapper.FiveDayThreeHourStepForecastResponseMapper
Official API response documentation.
Parameters(but the real response can differ):
--- cod Internal parameter
--- message Internal parameter
--- cnt A number of timestamps returned in the API response
--- list
|- list.dt Time of data forecasted, unix, UTC
|- list.main
|- list.main.temp Temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
|- list.main.feels_like This temperature parameter accounts for the human perception of weather. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
|- list.main.temp_min Minimum temperature at the moment of calculation. This is minimal forecasted temperature (within large megalopolises and urban areas), use this parameter optionally. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
|- list.main.temp_max Maximum temperature at the moment of calculation. This is maximal forecasted temperature (within large megalopolises and urban areas), use this parameter optionally. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
|- list.main.pressure Atmospheric pressure on the sea level by default, hPa
|- list.main.sea_level Atmospheric pressure on the sea level, hPa
|- list.main.grnd_level Atmospheric pressure on the ground level, hPa
|- list.main.humidity Humidity, %
|- list.main.temp_kf Internal par
|- list.weather
|- list.weather.id Weather condition id
|- list.weather.main Group of weather parameters (Rain, Snow, Extreme etc.)
|- list.weather.description Weather condition within the group. You can get the output in your language.
|- list.weather.icon Weather icon id
|- list.clouds
|- list.clouds.all Cloudiness, %
|- list.wind
|- list.wind.speed Wind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hour.
|- list.wind.deg Wind direction, degrees (meteorological)
|- list.visibility Average visibility, metres
|- list.pop Probability of precipitation
|- list.rain
|- list.rain.3h Rain volume for last 3 hours, mm
|- list.snow
|- list.snow.3h Snow volume for last 3 hours
|- list.sys
|- list.sys.pod Part of the day (n - night, d - day)
|- list.dt_txt Time of data forecasted, ISO, UTC
--- city
|- city.id City ID
|- city.name City name
|- city.coord
|- city.coord.lat City geo location, latitude
|- city.coord.lon City geo location, longitude
|- city.country Country code (GB, JP etc.)
|- city.timezone Shift in seconds from UTC
-
Constructor Summary
ConstructorsConstructorDescriptionFiveDayThreeHourStepForecastResponseMapper(UnitSystem unitSystem) Instantiates a new forecast response mapper. -
Method Summary
Modifier and TypeMethodDescriptionmapToForecast(String json) Maps forecast response into java object.
-
Constructor Details
-
FiveDayThreeHourStepForecastResponseMapper
Instantiates a new forecast response mapper.- Parameters:
unitSystem- the unit system
-
-
Method Details
-
mapToForecast
-