Package web.sportflow.weather
Class WeatherService
java.lang.Object
web.sportflow.weather.WeatherService
-
Constructor Summary
ConstructorsConstructorDescriptionWeatherService(org.springframework.web.client.RestTemplate restTemplate, org.springframework.web.client.RestClient restClient) -
Method Summary
Modifier and TypeMethodDescriptiongetCityFromCoordinates(Double latitude, Double longitude) getCoordinates(String address) getWeather(Double latitude, Double longitude, LocalDate date) getWeather(Double latitude, Double longitude, LocalDate startDate, LocalDate endDate) getWeather(String address, LocalDate date) getWeatherStats(String address, LocalDateTime startDate, Double duration) mapWeatherCode(String code) searchAddress(String query)
-
Constructor Details
-
WeatherService
@Autowired public WeatherService(org.springframework.web.client.RestTemplate restTemplate, org.springframework.web.client.RestClient restClient)
-
-
Method Details
-
mapWeatherCode
-
getWeather
public WeatherDTO getWeather(Double latitude, Double longitude, LocalDate startDate, LocalDate endDate) -
getWeather
-
getWeather
-
searchAddress
-
getCoordinates
-
getCityFromCoordinates
-
getWeatherStats
-