Package my.uum.service
Interface WeatherService
- All Known Implementing Classes:
WeatherServiceImpl
public interface WeatherService
Service interface for weather-related operations.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of all available cities.Gets a mapping of cities organized by state.Gets the hierarchical structure of locations.getWeather(String city) Gets the weather information for a specified city.
-
Method Details
-
getWeather
Gets the weather information for a specified city.- Parameters:
city- The name of the city- Returns:
- Weather information as a formatted string
-
getAvailableCities
Retrieves a list of all available cities.- Returns:
- List of city names
-
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
-