I would also point out that you’re going to run into an asynchronous problem - that $getJSON needs to be inside the callback to the geolocation or the $getJSON is going to run before those values are set. This recent thread discusses a similar issue.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Show the Local Weather - FCC Weather API | 14 | 4135 | February 2, 2021 | |
|
Weather app - anyone else feels completely lost?
|
11 | 1141 | January 17, 2021 | |
| Weather App - Weather API callback not working | 68 | 33242 | January 17, 2021 | |
|
Weather App Project
|
4 | 563 | January 17, 2021 | |
|
Need help with my weather app
|
13 | 1574 | January 17, 2021 |