From 68d5f249baab1e6d67febf5867c9c88e4680fbcd Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Mon, 13 Apr 2020 21:30:01 -0500 Subject: [PATCH] Add country code to ZIP code --- src/weather/open_weather_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weather/open_weather_map.js b/src/weather/open_weather_map.js index 1774abc..fc94a61 100644 --- a/src/weather/open_weather_map.js +++ b/src/weather/open_weather_map.js @@ -2,7 +2,7 @@ const WEATHER_API_KEY = "bbeb34ebf60ad50f7893e7440a1e2b0b"; const API_STEM = "http://api.openweathermap.org/data/2.5/weather?"; function zipUrl(zip) { - return `${API_STEM}q=${zip}&units=imperial&APPID=${WEATHER_API_KEY}`; + return `${API_STEM}q=${zip},us&units=imperial&APPID=${WEATHER_API_KEY}`; } function fetchForecast(zip) {