Is your feature request related to a problem? Please describe.
When a SEASON_CHANGE happens, the details contains the name of the month only. Even though it is expected to make it position-independent, it would be appreciated to provide a way to localize it depending on the latitude.
Describe the solution you'd like
Add a new function taking a SeasonType value and a position in arguments and returning a localized event depending on the position:
class LocalizedSeasonType(SeasonType):
WINTER
SPRING
SUMMER
AUTUMN
def get_localized_season(season: SeasonType, position: Position) -> LocalizedSeasonType
The returned value depends on the latitude. If it is exactly zero, then an exception explaining that the season cannot be localized should be thrown.
Describe alternatives you've considered
Currently, the only way to localize he season is to do it in user code.
Is your feature request related to a problem? Please describe.
When a
SEASON_CHANGEhappens, the details contains the name of the month only. Even though it is expected to make it position-independent, it would be appreciated to provide a way to localize it depending on the latitude.Describe the solution you'd like
Add a new function taking a
SeasonTypevalue and a position in arguments and returning a localized event depending on the position:The returned value depends on the latitude. If it is exactly zero, then an exception explaining that the season cannot be localized should be thrown.
Describe alternatives you've considered
Currently, the only way to localize he season is to do it in user code.