Interface OpenWeatherService

All Known Implementing Classes:
OpenWeatherServiceImpl

public interface OpenWeatherService
OpenWeatherService is a interface and acts as a service layer to handle business logic while calling OpenWeather APIs via OpenWeatherClient
  • Method Details

    • getWeatherForPincode

      OpenWeatherResponseVO getWeatherForPincode(PincodeEntity pincode)
      This method is responsible to fetch weather information by taking pincode as parameter.
      Parameters:
      pincode - Pincode represents the zip code for which the weather info needs to be fetched
      Returns:
      weather information for a given pin code
    • getCoordinatesForPincode

      OpenWeatherCoordinatesResponseVO getCoordinatesForPincode(long pincode)
      This method is responsible to fetch Geo-Spatial coordinates data by calling OpenWeather API using OpenWeatherClient
      Parameters:
      pincode - pincode represents the pincode for which the Geo-Spatial coordinates data to be fetched.
      Returns:
      Geo-Spatial coordinate data which include latitude, longitude values for a given pincode