cscore icon indicating copy to clipboard operation
cscore copied to clipboard

Build a Weather.cs helper that abstracts away the differences of the different weather APIs for the common use cases

Open cs-util opened this issue 1 year ago • 0 comments

Take a look at the different weather APIs and their responses in WeatherReportExamples

Define a few user stories what are common use cases how weather APIs are typically used. E.g. this one is probably a good one to start with:

Get the weather state at GPS position (e.g. the users position) for now and the next x hours. This state per hour should include the temperature, if its raining, ...

This Weather.cs should not try to do that much (for most use cases the specific APIs should be used) and it should also try to be stateless. One thing that can be tested is if it can normalize the responses from the different providers to map to a common WeatherResponse

cs-util avatar Jan 23 '24 02:01 cs-util