Fix forecast API: correct comments and add cnt parameter #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: Code comments incorrectly stated the forecast endpoint returns hourly data - it actually returns 3-hour intervals. Also, the full forecast response was being fetched when only the next 24 hours are needed.
Solution: Fixed comments to say '3-hour interval forecast'. Added parameter to limit response to 8 entries (24 hours of 3-hour intervals), reducing response payload size.
Files changed: