Loading...
Response:
{
location: <location>,
temperature: 50,
units: "Celsius",
humidity: 50,
updated_at: <updated_at_timestamp>
}
Request:
{
location: <location>,
units: <metric>
}
Request:
{
location: <location>,
units: <metric>
}
Response:
{
websocket_url: <websocket_url>
}
Overview:
Core components:
Weather Aggregation Service
abstract class WeatherDataProvider {
abstract fetch(location);
abstract normalize(data);
}
WeatherDataService
{
location: <location>,
temperature: <temperature>,
units: <metric>,
conditions: <weather_conditions>,
source: <weather_data_source>,
timestamp: <timestamp>
}
Real-Time Update Engine: