From 3c63628caf4d09e9179ef9024b140dadce3a74ec Mon Sep 17 00:00:00 2001 From: sajjad Date: Tue, 19 Dec 2023 12:33:22 +0330 Subject: [PATCH] fix bug --- assets/js/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/api.js b/assets/js/api.js index c531fb4..b40bd97 100644 --- a/assets/js/api.js +++ b/assets/js/api.js @@ -22,11 +22,11 @@ export const url = { return `http://api.openweathermap.org/data/2.5/air_pollution?${lat}&${lon}&units=metric`; }, reverseGeo(lat, lon) { - return `http://api.openweathermap.org/geo/1.0/reverse?${lat}&${lon}&limit=5`; + return `http://api.openweathermap.org/geo/1.0/reverse?lat=${lat}&lon=${lon}&limit=5`; }, geo(query) { return `http://api.openweathermap.org/geo/1.0/direct?q=${query}&limit=5`; }, }; - -// http://api.openweathermap.org/geo/1.0/direct?q=landon&limit=5&appid=${api_key} +// https://api.openweathermap.org/data/2.5/weather?lat=6.6517883&lon=-10.5931565&appid=8c2afaacf65df1976579f048d2fc4e25 +// https://api.openweathermap.org/data/2.5/weather?lat=44.34&lon=10.99&appid=8c2afaacf65df1976579f048d2fc4e25