Designed an algorithm to query weather API, retrieve data, and determine trends among weather data and geographic location.