diff --git a/weather/weather.py b/weather/weather.py index 75fd2f6..d81f9d7 100644 --- a/weather/weather.py +++ b/weather/weather.py @@ -21,4 +21,16 @@ def print_weather(location=None, metric=False, verbose=False): When metric is True, prints out the weather in metric units. When verbose is True, prints out a more detailed report. """ - print("Not finished...") # YOUR CODE HERE! + # YOUR CODE HERE! + + if location: + coordinates = geocode_location(location) + else: + coordinates = estimate_location() + + + office = get_weather_office(coordinates['lat'], coordinates['lng']) + + + forcast = get_forecast(office['office'], office['x'], office['y'], metric=metric) + print(forcast)