Interface WeatherService

All Known Implementing Classes:
WeatherServiceImpl

public interface WeatherService
Service interface for weather-related operations.
  • Method Details

    • getWeather

      String getWeather(String city)
      Gets the weather information for a specified city.
      Parameters:
      city - The name of the city
      Returns:
      Weather information as a formatted string
    • getAvailableCities

      List<String> getAvailableCities()
      Retrieves a list of all available cities.
      Returns:
      List of city names
    • getCitiesByState

      Map<String,List<String>> getCitiesByState()
      Gets a mapping of cities organized by state.
      Returns:
      Map with state names as keys and lists of cities as values
    • getHierarchicalLocations

      LocationHierarchy getHierarchicalLocations()
      Gets the hierarchical structure of locations.
      Returns:
      LocationHierarchy object containing the location structure