A Java Spring Boot application that retrieves weather forecasts from multiple weather services and compares the results to determine the best weather forecast.
This project was developed as a team project during my Java developer education.
The application retrieves weather data from multiple external APIs and compares forecasts based on temperature and humidity.
Weather data is retrieved from:
- MET Norway
- SMHI
- WeatherAPI
The application exposes the result through both a web controller and a REST endpoint.
- Java
- Spring Boot
- REST APIs
- Maven
- Thymeleaf
- Bootstrap
- Git / GitHub
The application communicates with several external weather APIs through separate REST clients.
The retrieved forecasts are converted into a common WeatherForecast model and processed by the service layer.
ForecastService compares the forecasts primarily by temperature. If forecasts have the same temperature, humidity is used as an additional comparison.
The selected forecast can then be accessed through the application's web interface or REST endpoint.
controller/
BestWeatherController
BestWeatherREST
dao/restclients/
met/
smhi/
weatherAPI/
service/
ForecastService
business/model/
WeatherForecast
This project was developed as a team project during our Java developer education.
Contributors can be found in the GitHub repository.