Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SMsajjadSM committed Dec 19, 2023
1 parent b299db3 commit 3c63628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3c63628

Please sign in to comment.